]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/voice-follower.ly
Imported Upstream version 2.19.45
[lilypond.git] / input / regression / voice-follower.ly
index e5ff04bbc2305d85fdc31d80162df1fa50409906..100327638cb6b81f68e823b454cfb8512f3f6fe0 100644 (file)
@@ -1,23 +1,27 @@
-\version "1.7.23"
+\version "2.19.21"
 
 
 \header { texidoc= "
 
 Whenever a voice switches to another staff a line connecting the notes
 can be printed automatically. This is enabled if the property
-@code{Thread.followVoice} is set to true. "
+@code{followVoice} is set to true. "
 
 }
-\score {
-\notes \relative c'
-\context PianoStaff <
-    \property PianoStaff.followVoice = ##t
-    \context Staff \context Voice {
-      c1
-      \translator Staff=two
-      b2 a
-    }
-    \context Staff=two {\clef bass \skip 1*2 }
-  >\paper{ 
-linewidth =-1.
-}}
+
+\layout{ 
+  ragged-right = ##t 
+}
+
+\relative
+\context PianoStaff <<
+  \set PianoStaff.followVoice = ##t
+  \new Staff = "one" \context Voice {
+    c'1
+    \change Staff=two
+    b2 a
+  }
+  \new Staff = "two" {\clef bass \skip 1*2 }
+>>
+
+