Previous: Arpeggio, Up: Piano music



3.10.5 Staff switch lines

Whenever a voice switches to another staff a line connecting the notes can be printed automatically. This is enabled if the property PianoStaff.followVoice is set to true

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

[image of music]

See also

The associated object is VoiceFollower.

Predefined commands

\showStaffSwitch, \hideStaffSwitch.

Read comments on this page, or add one.

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

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