Next: , Previous: References for keyboards, Up: Common notation for keyboards


Changing staff manually

Voices can be switched between staves manually, using the command

\change Staff = staffname

The string staffname is the name of the staff. It switches the current voice from its current staff to the staff called staffname. Typical values for staffname are "up" and "down", or "RH" and "LH".

Cross-staff notes are beamed automatically:

     
     \new PianoStaff <<
       \new Staff = "up" {
         <e' c'>8
         \change Staff = "down"
         g8 fis g
         \change Staff = "up"
         <g'' c''>8
         \change Staff = "down"
         e8 dis e
         \change Staff = "up"
       }
       \new Staff = "down" {
         \clef bass
         % keep staff alive
         s1
       }
     >>

[image of music]

If the beaming needs to be tweaked, make any changes to the stem directions first. The beam positions are then measured from the center of the staff that is closest to the beam. For a simple example of beam tweaking, see notation Fixing overlapping notation.

See also

Learning Manual: Fixing overlapping notation.

Notation Reference: Stems, Automatic beams.

Snippets: Keyboards.

Internals Reference: Beam, ContextChange.

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.