X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fhara-kiri-pianostaff.ly;h=be82c836f1607f91aaf1ed46354eda6b78200b24;hb=1b4d7bde7e3be4783e586c159d482691feaec563;hp=dde1af1a4e64f3bfea3c0f9611fc61455ca8cd66;hpb=be9d398d705ecf2308e10864e37c6f1315c78ec9;p=lilypond.git diff --git a/input/regression/hara-kiri-pianostaff.ly b/input/regression/hara-kiri-pianostaff.ly index dde1af1a4e..be82c836f1 100644 --- a/input/regression/hara-kiri-pianostaff.ly +++ b/input/regression/hara-kiri-pianostaff.ly @@ -1,19 +1,36 @@ -\version "1.5.68" -\header { -texidoc = "Hara kiri should not upset fixed distance alignment like in pianostaff. In this example the middle staff is harakiried." +\version "2.10.0" + +\header { texidoc = + + " Hara-kiri staves kill themselves if they are empty. This +example really contains three staves, but as they progress, 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. + +This example was done with a pianostaff, which has fixed distance +alignment; this should not confuse the mechanism. +" + } - -\score { \notes \transpose c''' - \context PianoStaff < - \context Staff = up { c c c c \break } - \context Staff = mid { s1 \break } - \context Staff = down { c4 c c c \break } - > - \paper { - \translator { - \HaraKiriStaffContext +\layout { + ragged-right= ##t + \context { + \RemoveEmptyStaffContext } - } } +\transpose c c'' +\context PianoStaff << + \new Staff { c4 c c c \break s1 \break c4 c c c \break c c c c} + \new Staff { d4 d d d s1 s1 s1 } + \new Staff { e4 e e e s1 e4 e e e s1 } +>> + + +