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 }
>>
Program reference: VoiceFollower.
\showStaffSwitch,
\hideStaffSwitch.
This page is for LilyPond-2.6.6 (stable-branch).