]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/hara-kiri-pianostaff.ly
* scripts/convert-ly.py (conv): fixed \context Foo = mixedCaps
[lilypond.git] / input / regression / hara-kiri-pianostaff.ly
index 4f69b459dd559e1db1f5d875f3c3562100070f8e..187dc6bb9c39006ce1b44de2408eb4d67d5a21fa 100644 (file)
@@ -1,20 +1,37 @@
-\version "1.7.19"
-\header {
-texidoc = "Hara kiri should not upset fixed distance alignment like in pianostaff. In this example the middle staff is harakiried."
+\version "2.4.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.
+"
+         
 }
 
+\layout { raggedright= ##t }
+
        
-\score { \notes \transpose c 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 {
+\score {  \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 s1 }
+   \new Staff {  e4 e e e s1 e4 e e e s1 }
+ >>
+ \layout {
+  \context {
    \RemoveEmptyStaffContext
   }
  }
 }
 
-%% new-chords-done %%
+