]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/follow-thread.ly
Added texidoc index.
[lilypond.git] / input / test / follow-thread.ly
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..a049534f504ad8af9b44ef57e27231a47a75e75b 100644 (file)
@@ -0,0 +1,28 @@
+\version "1.7.18"
+
+% followVoice: connect note heads with line when thread switches staff 
+\header{ texidoc="@cindex followVoice Thread
+Theads can be traced automagically when they switch staves by setting
+property @code{followVoice}. " }
+
+
+fragment = \notes {
+  \context PianoStaff <
+    \property PianoStaff.followVoice = ##t
+    \property Voice.VoiceFollower \set #'type = #'dashed-line
+    \context Staff \context Voice {
+      c'1
+      \translator Staff=two
+      b2 a
+    }
+    \context Staff=two {\clef bass \skip 1*2}
+  >
+}
+
+\paper { raggedright = ##t} 
+
+\score {
+  \notes\relative c \fragment
+  \paper { raggedright = ##t }  
+}
+%% new-chords-done %%