RE: \RemoveEmptyStaves

2019-03-04 Thread Richard Gress
Thank you!

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

-Original Message-
From: lilypond-user  
On Behalf Of Malte Meyn
Sent: Monday, March 4, 2019 2:39 AM
To: lilypond-user@gnu.org
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
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

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


\RemoveEmptyStaves

2019-03-03 Thread 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.

The input... (complete file: https://1drv.ms/u/s!AucNdHoia6D-2TnE0_Op2BKlUKGh )

\version "2.18.2"
#(set-default-paper-size "letter" 'landscape)


uppera = \relative c'' {
   %MUSIC
}

upperb = \relative c' {
   % MUSIC
}
lowera = \relative c {
   % MUSIC
}

lowerb = \relative c, {
   % MUSIC
}

\score {
  \new PianoStaff \with {
instrumentName = "Piano"
  } <<
\new Staff = "uppera" \uppera
\new Staff = "upperb" \upperb
\new Staff = "lowera" \lowera
\new Staff = "lowerb" \lowerb
  >>

  \layout {

   \context {

 \Staff \RemoveEmptyStaves

 % To use the setting globally, uncomment the following line:

 %\override VerticalAxisGroup #'remove-first = ##t

   }

}
}





Midterm.ly
Description: Midterm.ly
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user