Next: , Previous: Pedals, Up: Piano music


7.1.4 Staff switch lines

Whenever a voice switches to another staff, a line connecting the notes can be printed automatically. This is switched on by setting followVoice to true

     \new PianoStaff <<
       \context Staff=one {
         \set followVoice = ##t
         c1
         \change Staff=two
         b2 a
       }
       \context Staff=two { \clef bass \skip 1*2 }
     >>

[image of music]

See also

Program reference: VoiceFollower.

Predefined commands

\showStaffSwitch, \hideStaffSwitch.

This page is for LilyPond-2.6.3 (stable-branch).

Report errors to <bug-lilypond@gnu.org>.

Other languages: English.
Using automatic language selection.