[Top][All Lists]
[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: |
Mon, 20 Feb 2012 15:55:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
Michael Hendry <address@hidden> writes:
>> 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.
>>
> 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
Pffft. Taking a look at the LilyPond grammar (it is also in an appendix
in the notation manual), it turns out that you have to write
\book { \ConcertBook }
here. Turns out that a book identifier can be used in both \bookpart
and \book. That's a bit more for outcommenting and it becomes harder to
use this conditionally.
--
David Kastrup
- Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Michael Hendry, 2012/02/19
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Helge Kruse, 2012/02/19
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Michael Hendry, 2012/02/19
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, lilypond, 2012/02/19
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Michael Hendry, 2012/02/20
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, David Kastrup, 2012/02/20
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Michael Hendry, 2012/02/20
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, David Kastrup, 2012/02/20
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Michael Hendry, 2012/02/20
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?,
David Kastrup <=
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, David Kastrup, 2012/02/20
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Michael Hendry, 2012/02/20
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, David Kastrup, 2012/02/22
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, David Kastrup, 2012/02/23
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Michael Hendry, 2012/02/24
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Graham Percival, 2012/02/24
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, David Kastrup, 2012/02/24
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Michael Hendry, 2012/02/24
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Francisco Vila, 2012/02/24
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Francisco Vila, 2012/02/24