[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: |
Michael Hendry |
Subject: |
Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond? |
Date: |
Sun, 19 Feb 2012 15:28:34 -0800 (PST) |
Shevek wrote:
>
> Have you thought about how to use tags for this?
>
> Saul
>
> On Friday, February 17, 2012 03:30:51 PM Michael Hendry wrote:
>> 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
>>
>> to suppress unwanted output for the Alto sax part (and those for the
>> other
>> transposing instruments), and comment out the #DEFINE NotYet when I'm
>> happy
>> with the data entry.
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
Thanks, Saul.
As I said earlier, I'd had a look at tags, but didn't think I could make a
tag do the job. I'll have another look!
Michael
--
View this message in context:
http://old.nabble.com/Is-there-an-equivalent-of--define-...--ifndef-...--endif-in-lilypond--tp33346188p33354054.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, (continued)
- 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?, Helge Kruse, 2012/02/20
Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, David Kastrup, 2012/02/19
Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Saul Tobin, 2012/02/19
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?,
Michael Hendry <=
Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Urs Liska, 2012/02/20
Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Christ van Willegen, 2012/02/20