]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/follow-thread.ly
Fixes documentation.
[lilypond.git] / input / test / follow-thread.ly
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..171aa6d6ae1db14d63bd35a719680fb9c2765f51 100644 (file)
@@ -0,0 +1,31 @@
+
+\header{
+texidoc="
+Theads can be traced automagically when they switch staves by setting
+property @code{followVoice}.
+"
+}
+
+\version "1.7.6"
+% followVoice: connect note heads with line when thread switches staff 
+
+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 { linewidth = -1. } 
+
+\score {
+  \notes\relative c \fragment
+  \paper { }  
+}
+%% new-chords-done %%