]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/hara-kiri-pianostaff.ly
MusicXML: src-dir rather than srcdir.
[lilypond.git] / input / regression / hara-kiri-pianostaff.ly
1 \version "2.11.51"
2
3 \header { texidoc =
4
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 does not happen in practice.)
11
12 Any staff brackets and braces are removed, both in the single staff
13 and no staff case.
14
15 This example was done with a pianostaff, which has fixed distance
16 alignment; this should not confuse the mechanism.
17 "
18           
19 }
20
21 \layout {
22   ragged-right= ##t
23   \context {
24     \RemoveEmptyStaffContext
25   }
26 }
27
28 \transpose c c''
29 \context PianoStaff <<
30   \new Staff {  c4 c c c \break s1 \break c4 c c c \break c c c c}
31   \new Staff {  d4 d d d        s1        s1              s1 }
32   \new Staff {  e4 e e e        s1        e4 e e e        s1 }
33 >>
34
35
36