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: Michael Hendry
Subject: Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?
Date: Mon, 20 Feb 2012 06:47:39 -0800 (PST)



David Kastrup wrote:
> 
> Michael Hendry <address@hidden> writes:
> 
>> David Kastrup wrote:
>>> 
>>> Michael Hendry <address@hidden> writes:
>>> 
>>>> I've been experimenting with \tag, but it doesn't seem to be possible
>>>> to use it in the \book {} context.
>>> 
>>> Care to show your experiments?
>>> 
>>> -- 
>>> David Kastrup
>>> 
>>> 
>>
>> OK - here's a stripped-down version of a 32-bar standard:
> 
> 
> 
>> \tag #'ConcertBook {
>> \book {
>>      \bookOutputName "TestTag (concert)"
> 
> Ok, tags work with music, not with books.  Here is what I would suggest:
> 
> ConcertBook =
> \book {
>   ...
> }
> 
> and then you can at a later point of time say
> 
> \ConcertBook
> 
> and can comment that line out or not.  Assigning #f to ConcertBook when
> a command line option is set is a bit trickier, but still reasonably
> easy.
> 
> -- 
> David Kastrup
> 
> 
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 
That sounds good, but when I tried it I got...

address@hidden:~/indigo/workspace/TestTag$ lilypond score.ly
GNU LilyPond 2.14.2
Processing `score.ly'
Parsing...
score.ly:92:0: error: syntax error, unexpected BOOK_IDENTIFIER

\ConcertBook
error: failed files: "score.ly"
address@hidden:~/indigo/workspace/TestTag$ 


-- 
View this message in context: 
http://old.nabble.com/Is-there-an-equivalent-of--define-...--ifndef-...--endif-in-lilypond--tp33346188p33357093.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.




reply via email to

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