X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fhara-kiri-rhythmicstaff.ly;fp=input%2Fregression%2Fhara-kiri-rhythmicstaff.ly;h=89d2e3416ec09906c59272a5e6c4a9eeed7749ae;hb=941dff9d2a67080e0dd8474f1e70f0c72ace6424;hp=0000000000000000000000000000000000000000;hpb=5a22d6233a39d3164e1ca043244794c268be4ad0;p=lilypond.git diff --git a/input/regression/hara-kiri-rhythmicstaff.ly b/input/regression/hara-kiri-rhythmicstaff.ly new file mode 100644 index 0000000000..89d2e3416e --- /dev/null +++ b/input/regression/hara-kiri-rhythmicstaff.ly @@ -0,0 +1,45 @@ +\version "2.14.0" +\header { + texidoc = + + " Hara-kiri staves are suppressed if they are empty. This +example really contains three rhythmic staves, but as it progresses, empty ones +are removed: this example has three staves, but some of them +disappear: note how the 2nd line only has the bar number 2. (That the +bar number is printed might be considered a bug, however, the scenario +of all staves disappearing does not happen in practice.) + +Any staff brackets and braces are removed, both in the single staff +and no staff case. +" + +} + +\layout { + ragged-right= ##t + \context { + \RhythmicStaff + \RemoveEmptyStaves + } +} + +\context StaffGroup << + \new RhythmicStaff { + c4 c c c \break + s1 \break + c4 c c c \break + c c c c + } + \new RhythmicStaff { + c4 c c c + s1 + s1 + s1 + } + \new RhythmicStaff { + c4 c c c + s1 + c4 c c c + s1 + } +>>