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: David Kastrup
Subject: Re: Is there an equivalent of #define ... #ifndef ... #endif in lilypond?
Date: Sun, 19 Feb 2012 10:01:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Michael Hendry <address@hidden> writes:

> When I've finished a jazz chart, I'll want to produce separate parts
> for several transposing instruments, but while I'm working on the
> entry of the melody and chords in concert pitch I only need to produce
> one .pdf file. 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 > \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. 

Uh, you know about block comments?  %{ ... %} ?

You can also just say
saxoPart = { ... }

and then either use or not use \saxoPart.  And then there are tags as
well (look them up in the manual).

-- 
David Kastrup




reply via email to

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