Next: , Previous: Automatic staff changes, Up: Piano music



3.10.2 Manual staff switches

Voices can be switched between staves manually, using the following command

     \change Staff = staffname music

The string staffname is the name of the staff. It switches the current voice from its current staff to the Staff called staffname. Typically staffname is "up" or "down". The Staff referred to must already exist, so usually the setup for a score will start with a setup of the staves,

       <<
       \context Staff = up {
         \skip 1 * 10  % keep staff alive
         }
       \context Staff = down {
         \skip 1 * 10  %idem
         }
       >>

and the Voice is inserted afterwards

       \context Staff = down
         \new Voice { ... \change Staff = up ... }

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>.