lilypond-user
[Top][All Lists]
Advanced

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

Re: scheme variable name in lilypond


From: Gianmaria Lari
Subject: Re: scheme variable name in lilypond
Date: Mon, 25 Jun 2018 23:46:44 +0200



On Mon, 25 Jun 2018 at 23:37, Thomas Morley <address@hidden> wrote:
2018-06-25 23:31 GMT+02:00 Gianmaria Lari <address@hidden>:
> Is there any way to refer a scheme variable containing numbers in the name,
> in lilypond?
>
> For example, if I write:
>
> #(define duration32 (ly:make-duration (ly:intlog2 32)))
>
> duration32 is a valid scheme variable name. But this is not a valid lilypond
> variable name. Is there any way to access it anyway in lilypond?
>
> Thank you, g.

#(define duration32 (ly:make-duration (ly:intlog2 32)))

\void \displayMusic \"duration32"

uhmm... ok! 
I tried also this:

\version "2.19.81"
#(define duration32 (ly:make-duration (ly:intlog2 32)))
{a\"duration32"} 

and you're right, it works.
Thank you Harm!

reply via email to

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