5 " Hara kiri staves kill themselves if they are empty. This
6 example really contains three staves, but as they progress, empty ones
7 are removed: this example has three staves, but some of them
8 disappear: note how the 2nd line only has the bar number 2. (That the
9 bar number is printed might be considered a bug, however, the scenario
10 of all staves disappearing doesn't happen in practice.)
12 Any staff brackets and braces are removed, both in the single staff
15 This example was done with a pianostaff, which has fixed distance
16 alignment; this should not confuse the mechanism.
21 \paper { raggedright= ##t }
24 \score { \notes \transpose c c''
25 \context PianoStaff <<
26 \new Staff { c4 c c c \break s1 \break c4 c c c \break c c c c}
27 \new Staff { d4 d d d s1 s1 s1 s1 }
28 \new Staff { e4 e e e s1 e4 e e e s1 }
32 \RemoveEmptyStaffContext