lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: \RemoveEmptyStaves


From: Richard Gress
Subject: RE: \RemoveEmptyStaves
Date: Mon, 4 Mar 2019 22:39:34 +0000

Thank you!

This should definitely be in the Lilypond Docs for keyboard-specific notation.

-----Original Message-----
From: lilypond-user <address@hidden> On Behalf Of Malte Meyn
Sent: Monday, March 4, 2019 2:39 AM
To: address@hidden
Subject: Re: \RemoveEmptyStaves



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
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

[Prev in Thread] Current Thread [Next in Thread]