]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/beam-cross-staff-auto-knee.ly
Use for-each instead of map when result is to be ignored anyway.
[lilypond.git] / input / regression / beam-cross-staff-auto-knee.ly
index 0f7f7b8349c3b446feb9c38c36133071c05a5883..aaa8ed933a4057f4ccccebf6dfdf59a9b6300e72 100644 (file)
@@ -1,25 +1,25 @@
-\version "1.7.18"
+
+\version "2.14.0"
 
 \header{
 
-    texidoc="Automatic cross-staff knees also work (here we see them
-with explicit staff switches)."
+  texidoc="Automatic cross-staff knees work also (here they were
+produced with explicit staff switches)."
 
-     }
+}
 
-\score {
-  \notes \context PianoStaff <
-    \context Staff = "up" \notes\relative c''{
-      [ b8 \translator Staff="down" d,, ]
-      [ c \translator Staff="up" c'' ]
-      [ b, \translator Staff="down" d^"no knee" ]
-    }
-    \context Staff = "down" {
-      \clef bass 
-      s2.
-    }
-  >
-  \paper{
-    raggedright = ##t
-  }
+\layout{
+  ragged-right = ##t
 }
+
+\context PianoStaff <<
+  \new Staff = "up" \relative c''{
+    b8[ \change Staff="down" d,, ]
+    c[ \change Staff="up" c'' ]
+    b,[ \change Staff="down" d^"no knee" ]
+  }
+  \new Staff = "down" {
+    \clef bass 
+    s2.
+  }
+>>