]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/hara-kiri-drumstaff.ly
Fix Tracker 918
[lilypond.git] / input / regression / hara-kiri-drumstaff.ly
1 \version "2.13.10"
2 \header {
3   texidoc =
4
5       " Hara-kiri staves are suppressed if they are empty.  This
6 example really contains three drum staves, but as it progresses, 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
16 }
17
18 \layout {
19   ragged-right = ##t
20   \context {
21     \RemoveEmptyDrumStaffContext
22   }
23 }
24
25 \transpose c c''
26 \context StaffGroup <<
27   \new DrumStaff
28   \drummode {
29     sn4 sn sn sn \break
30     s1 \break
31     sn4 sn sn sn \break
32     sn sn sn sn
33   }
34   \new DrumStaff
35   \drummode {
36     hh4 hh hh hh
37     s1
38     s1
39     s1
40   }
41   \new DrumStaff
42   \drummode {
43     bd4 bd bd bd
44     s1
45     bd4 bd bd bd
46     s1
47   }
48 >>