]> git.donarmstrong.com Git - lilypond.git/blob - input/features/follow-thread.ly
patch::: 1.3.128.jcn4
[lilypond.git] / input / features / follow-thread.ly
1 \header{
2 texidoc="
3 Theads can be traced automagically when they switch staffs by setting
4 property @code{followThread}.
5 ";
6 }
7 % followThread: connect note heads with line when thread switches staff 
8
9 fragment = \notes {
10   \context PianoStaff <
11     \property PianoStaff.followThread = ##t
12     \context Staff \context Voice {
13       c'1
14       \translator Staff=two
15       b2 a
16     }
17     \context Staff=two {\clef bass; \skip 1*2;}
18   >
19 }
20
21 \paper { linewidth = -1.; } 
22
23 \score {
24   \notes\relative c \fragment
25   \paper { }  
26 }