[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \RemoveEmptyStaves
From: |
Malte Meyn |
Subject: |
Re: \RemoveEmptyStaves |
Date: |
Mon, 4 Mar 2019 08:39:07 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.2 |
Am 04.03.19 um 03:17 schrieb Richard Gress:
Hi all,
Why is \RemoveEmptyStaves not working the way I’m using it? The output
still shows blank staves in a ten-page document. Uncommenting the global
command doesn’t work, either.
PianoStaff contains the Keep_alive_together_engraver. This means that
individual staves aren’t hidden, only the PianoStaff as a whole when all
staves are empty. This makes sense in orchestra music but not for piano
solo. You can use a GradStaff instead or remove the
Keep_alive_together_engraver:
\new GrandStaff <<
\new Staff …
\new Staff …
\new Staff …
\new Staff …
>>
\new PianoStaff \with {
\remove Keep_alive_together_engraver
} <<
\new Staff …
\new Staff …
\new Staff …
\new Staff …
>>
In fact, the Keep_align_together_engraver is the only difference between
the two contexts, so both solutions are equivalent.