Hi Saul,

> Here's a short little snippet to turn on or off whether a score is compiled.
> I'm using this to control which movements are compiled across all my 
> instrumental parts from a flag in a single file.

Nice! I do the same kind of thing in my big multi-movement works (operas, 
musicals, etc.)

For those searching the list and finding this thread, here's another way of 
accomplishing conditional engraving:

%%%%  SNIPPET BEGINS
\version "2.19.80"

include_A = ##t

nullscore = \markup \null
score_A = \score { { c''4 } }

$(if include_A score_A nullscore)
%%%%  SNIPPET ENDS

Best,
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: [email protected]


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to