Next: , Previous: Changing staff automatically, Up: Common notation for keyboards


Staff-change lines

Whenever a voice switches to another staff, a line connecting the notes can be printed automatically:

     
     \new PianoStaff <<
       \new Staff = "one" {
         \showStaffSwitch
         c1
         \change Staff = "two"
         b2 a
       }
       \new Staff = "two" {
         \clef bass
         s1*2
       }
     >>

[image of music]

Predefined commands

\showStaffSwitch, \hideStaffSwitch.

See also

Snippets: Keyboards.

Internals Reference: Note_head_line_engraver, VoiceFollower.

This page is for LilyPond-2.11.58 (development-branch).

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.

Your suggestions for the documentation are welcome.

Other languages: français, español, deutsch.