bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lilypond conditionals?


From: Han-Wen Nienhuys
Subject: lilypond conditionals?
Date: Tue, 26 Nov 2002 01:58:57 +0100

address@hidden writes:
> Does lilypond have some form of conditionals (at the source level)?

In lily 1.7 , identifiers and Scheme are thoroughly integrated, so you
could use

#(define with-tablature #t)

bottomLine = \context Staff {  .. }
tablature = \context TabStaff  { .. }

\score {
  #(ly:export (if with-tablature
                  (sequential-music (list bottomLine tablature))
                  bottomLine))                             
                  
}

-- 

Han-Wen Nienhuys   |   address@hidden   |   http://www.cs.uu.nl/~hanwen 




reply via email to

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