lilypond-1.3.144
[lilypond.git] / input / tricks / follow-thread.ly
blob2771cb871b310aeb826525fca90f882de4d3e264
2 \header{
3 texidoc="
4 Theads can be traced automagically when they switch staffs by setting
5 property @code{followVoice}.
6 ";
9 \version "1.3.139"
10 % followVoice: connect note heads with line when thread switches staff
12 fragment = \notes {
13 \context PianoStaff <
14 \property PianoStaff.followVoice = ##t
15 \property Voice.VoiceFollower \set #'type = #'dashed-line
16 \context Staff \context Voice {
17 c'1
18 \translator Staff=two
19 b2 a
21 \context Staff=two {\clef bass; \skip 1*2;}
25 \paper { linewidth = -1.; }
27 \score {
28 \notes\relative c \fragment
29 \paper { }