[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 lilypon
From: |
Patrick Karl |
Subject: |
Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond? |
Date: |
Sun, 19 Feb 2012 09:03:09 -0600 |
>
> Message: 1
> Date: Sun, 19 Feb 2012 09:58:23 +0100
> From: Helge Kruse <address@hidden>
> To: address@hidden
> Subject: Re: Is there an equivalent of #define ... #ifndef ... #endif
> in lilypond?
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Am 18.02.2012 00:30, schrieb Michael Hendry:
>>
>> Obviously, I can comment out the sections I don't want during data entry
>> work, and remove the comments once the work is complete, but it would be
>> handy to be able to use a C-like construct like this:
>>
>>
>> #DEFINE NotYet
>> ...
>> #IFNDEF NotYet
>> \book {
>> \bookOutputName "Chez Fernand (alto)"
>> \new Score
>> <<
>> \transpose f' d {\TheChords}
>> \new Staff
>> \repeat unfold 13 {
>> s1 \noBreak s1 \noBreak s1 \noBreak s1 \break }
>> \transpose f' d {\TheHead}
>>>>
>> \header {piece = "Alto Sax"}
>> }
>> #ENDIF
> What about block comment? I can't see why editing the file to change
> #DEFINE is preferred to editing the file to change the block comment.
>
> %{
> \book {
> \bookOutputName "Chez Fernand (alto)"
> \new Score
> <<
> \transpose f' d {\TheChords}
> \new Staff
> \repeat unfold 13 {
> s1 \noBreak s1 \noBreak s1 \noBreak s1 \break }
> \transpose f' d {\TheHead}
>>>
> \header {piece = "Alto Sax"}
> }
> %}
>
> Helge
What would you do if the block to be commented out already contained block
comments?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?,
Patrick Karl <=