[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: |
Fri, 24 Feb 2012 19:26:06 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
Michael Hendry <address@hidden> writes:
> David Kastrup wrote:
>>
>>
>> You can use
>>
>> includeGuitar = ##t
>> includeConcert = ##f
>> includeTrumpet = ##t
>> includeAlto = ##f
>>
>> at the top and then do
>>
>> $(if includeGuitar GuitarBook)
>> $(if includeConcert ConcertBook)
>> $(if includeTrumpet TrumpetBook)
>> $(if includeAlto AltoBook)
>>
>> at the bottom.
>>
>>
>
> I'm beginning to think I'm terminally dim, but I can't get this to work, and
> I can't find any reference to $(if...), (nor indeed to any kind of "if ...
> then ... else") in the Lilypond manuals, despite several hours of hunting.
>
> The error message I get is "syntax error, unexpected $undefined".
Uh, this _does_ assume that you have
GuitarBook = \book { ... }
ConcertBook = \book { ... }
...
in the middle. $ starts a Scheme expression, so you would need to look
up "if" in the Guile manual instead.
--
David Kastrup
- 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/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?, Michael Hendry, 2012/02/25
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, David Kastrup, 2012/02/25
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Michael Hendry, 2012/02/26
- Re: Is there an equivalent of #define ... #ifndef ... #endif inlilypond?, Phil Holmes, 2012/02/26
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, David Kastrup, 2012/02/26
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Thomas Morley, 2012/02/24
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, David Kastrup, 2012/02/25
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, David Kastrup, 2012/02/25
- Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?,
David Kastrup <=
- 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?, Urs Liska, 2012/02/20
Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?, Christ van Willegen, 2012/02/20