lilypond-user
[Top][All Lists]
Advanced

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

Re: Set /bookOutputName to Conjunction of Variable and String


From: David Kastrup
Subject: Re: Set /bookOutputName to Conjunction of Variable and String
Date: Fri, 18 Oct 2019 12:53:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

foxfanfare <address@hidden> writes:

> Aaron Hill wrote
>> I would suggest using \bookOutputSuffix, but you can certainly use a 
>> little Scheme to concatenate the strings:
>
> Is it also possible to use that kind of code with \include ? I tried
> something like:
>
> num = "01"
>
> %\include "../../ily/global/global.01.ily"
> \include #(string-join (list "../../ily/global/global" num "ily" ) "." )
>
> The first one work but not the second. Am I doing something wrong here?

That's a tricky one.  The \include statement is evaluated before the
assignment to "num" is complete since LilyPond syntax allows things like

num = "01".oh

and the ."oh" might be provided by the included file.  So you need to
put basically anything after the assignment to "num" before calling the
\include statement.

-- 
David Kastrup



reply via email to

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