]> git.donarmstrong.com Git - lilypond.git/blob - input/test/follow-thread.ly
release: 1.3.112
[lilypond.git] / input / test / follow-thread.ly
1 % followThread: connect note heads with line when thread switches staff 
2
3 \score{
4     \context PianoStaff <
5         \context Staff=one \notes\relative c''{
6             \context Thread
7             a
8             \translator Staff=two
9             a,
10
11 % smaller = easier to debug.
12 %{      a
13             \translator Staff=one
14             a''
15 %}
16                 s2
17         }
18         \context Staff=two { \clef bass; \skip 1; }
19     >
20     \paper{
21         linewidth = 70.\mm;
22         \translator {
23             \ScoreContext
24             followThread = ##t
25         }
26     }
27 }