Hi,
I was typesetting a piece in which an organ only played only a few notes
near the end of the piece, So, to fit more music on a page I turned to
Remove(All)EmptyStaves. That failed to work. It turned out that it was
because a Dynamics context is used. Below is a small lilypond snippet to
show the culprit. Once the \new Dynamics line is removed or commented out,
the behaviour is as expected.
Kind regards,
Ruud van Silfhout
\version "2.24.3"
\layout {
\context {
\Staff
\RemoveAllEmptyStaves
}
}
\score {
<<
\new Staff { \relative c'' { \repeat unfold 4 {\repeat unfold 10 { c4 }
\break } } }
\new PianoStaff <<
\new Staff { \relative c' { \repeat unfold 9 { R1 } c4 c c e } }
\new Dynamics { \repeat unfold 9 { s1 } s1\pp }
\new Staff { \relative c' { \repeat unfold 9 { R1 } e4 e e e } }
>>
>>
\layout {
}
}