]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/voice-follower.ly
c06de358c1bf7553dc2a3e319586a82e6bc70bc5
[lilypond.git] / input / regression / voice-follower.ly
1 \version "2.12.0"
2
3
4 \header { texidoc= "
5
6 Whenever a voice switches to another staff a line connecting the notes
7 can be printed automatically. This is enabled if the property
8 @code{followVoice} is set to true. "
9
10 }
11
12 \layout{ 
13   ragged-right = ##t 
14 }
15
16 \relative c'
17 \context PianoStaff <<
18   \set PianoStaff.followVoice = ##t
19   \new Staff = "one" \context Voice {
20     c1
21     \change Staff=two
22     b2 a
23   }
24   \new Staff = "two" {\clef bass \skip 1*2 }
25 >>
26
27