lilypond-user
[Top][All Lists]
Advanced

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

Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond


From: David Kastrup
Subject: Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?
Date: Wed, 22 Feb 2012 09:39:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Michael Hendry <address@hidden> writes:

> If I compile: 
>
> \book { \GuitarBook }
> \book { \ConcertBook }
> \book { \TrumpetBook }
> \book { \AltoBook }
>
> I get the correct information in the output files, but the filenames are...
>
> TestTag (alto).pdf
> TestTag (alto)-1.pdf
> TestTag (alto)-2.pdf
> TestTag (alto)-3.pdf
>
> ...although the definition of GuitarBook includes '\bookOutputName "TestTag
> (gtr)"', and so on for the other parts.

\bookOutputName sets a global variable.  Do you think the variable
should be part of the \layout or something like that?  It is not all
that obvious to me what is sitting where, so I can't deal timely with
that because of other work.  You might want to file bug report for this
so that it does not get lost.  And you might want to thing about how
this should best play together with bookparts and midi, basically making
a wishlist of different scenarios and the output files you would expect
in each case.  That makes it more likely that someone will tackle it
sooner, or that problems in the design are shaken out in the discussion
before somebody invests unnecessary work.

> It looks as though \bookOutputName is treated as a global variable,
> even though it's defined inside a \book {}

It is not as much "defined" as "called".  Look at its definition in
ly/music-function-init.ly.

> which is itself defined within a variable's assignment statement.

-- 
David Kastrup




reply via email to

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