Jérôme Plût <jerome.p...@normalesup.org> writes: > I am writing some ensemble music and want the file to compile in two > modes: with -dfull, compile all individual parts; without it, compile > only the conductor part (for debugging). This is probably a FAQ but I > cannot find an answer on the site: what is the preferred way to > implement conditional compilation in Lilypond-guile? I naively tried > several variants of > > \bookpart { \relative c' { c4 e g } } > #(if (ly:get-option 'full) #{ > \bookpart { \relative c' { c4 d e } } > #}) > > but it looks like the second \bookpart is not exported to the > top-level lilypond. I can more or less reimplement \bookpart in Scheme > (why is it not already a Scheme construct anyway?) but there is > certainly a simpler solution. > > Also, bonus points for shortness of solution:
Replace the first # with $. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user