[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Snippet for conditional score compilation
From: |
Kieren MacMillan |
Subject: |
Re: Snippet for conditional score compilation |
Date: |
Thu, 16 Nov 2017 16:11:03 -0500 |
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: address@hidden