]> git.donarmstrong.com Git - lilypond.git/blob - input/test/follow-voice.ly
* scripts/lilypond-book.py (do_file): do not overwrite input file.
[lilypond.git] / input / test / follow-voice.ly
1 \version "2.1.26"
2 % MERGED: stuff from follow-break.ly to follow-thread.ly
3
4 % followVoice: connect note heads with line when thread switches staff 
5 \header{ texidoc="@cindex followVoice Voice
6 Voices can be traced automagically when they switch staves by setting
7 property @code{followVoice}. " }
8
9
10 \score {
11         \notes\relative c {
12         \new PianoStaff <<
13                 \set PianoStaff.followVoice = ##t
14                 \context Staff=one \context Voice {
15                         \override VoiceFollower  #'style = #'dashed-line
16                         c'1
17                         \change Staff=two
18                         b2 a
19 % these lines from follow-break.ly:
20                         \change Staff=one
21                         a1
22                     }
23                 \context Staff=two {\clef bass \skip 1*3 }
24                 >>
25         }
26
27   \paper { raggedright = ##t }  
28 }
29