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: I am actually writing lots of small pieces and don't mind including some Scheme in all of them as the files already include a common header, but I would very much like to keep the files themelves short and human-readable. Thanks in advance! -- Jérôme Plût _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user