lilypond-user
[Top][All Lists]
Advanced

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

Re: make-music?


From: Aaron Hill
Subject: Re: make-music?
Date: Sat, 13 Apr 2024 13:37:46 -0700

On 2024-04-13 1:08 pm, Pierre-Luc Gauthier wrote:
But what about the parenthesised alist -> (alist) ‽


Difference between a variable containing an alist versus a *procedure* that returns an alist. This defers the evaluation of aSymbol until such time as it is defined.

Here is another approach:

%%%%
\version "2.25.13"

#(define anAList '((aVariable . aSymbol)))

aSymbol = { cis' }

{
  #(module-ref (current-module) (cdr (assoc 'aVariable anAList)))
}
%%%%


-- Aaron Hill



reply via email to

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