lilypond-user
[Top][All Lists]
Advanced

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

Re: make-music?


From: Thomas Morley
Subject: Re: make-music?
Date: Sat, 13 Apr 2024 21:36:02 +0200

Am Sa., 13. Apr. 2024 um 20:59 Uhr schrieb Pierre-Luc Gauthier
<p.luc.gauthier@gmail.com>:
>
> Hello there,
>
> Quite an easy one I'm sure but I tried many combinations to no avail.
>
> I have this symbol that I wish to evaluate later. I thought that was
> what ly:make-music was for.
>
> \version "2.25.15"
>
> #(define anAList ((aVariable . aSymbol)))
>
> aSymbol = {cis'}
>
> {
>   #(cdr (assoc 'aVariable anAList))
> }
>
> How can I make this symbol into music without defining it before the alist ?
>
> Thanks for any pointers :-)
> --
> Pierre-Luc Gauthier
>

Quick'n dirty:

#(define (anAList) `((aVariable . ,aSymbol)))

aSymbol = { cis'4 }

{
  $(assoc-get 'aVariable (anAList))
}

Cheers,
  Harm



reply via email to

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