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.

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to