lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question (define and set!)


From: Jean Abou Samra
Subject: Question (define and set!)
Date: Mon, 4 May 2020 12:21:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

Hi,

Why do you often find constructs similar to this one in LilyPond's source?

midi.scm line 26:

(define-session-public absolute-volume-alist '())
(set! absolute-volume-alist (append absolute-volume-alist etc.))

line 72:

(define instrument-names-alist '())
(set! instrument-names-alist ...

Is there any difference with (define-session-public absolute-volume-alist '(...)) ? I suspect there is one since this is frequent but I can't figure out what the purpose is here.

Best,

Jean Abou Samra




reply via email to

[Prev in Thread] Current Thread [Next in Thread]