|
|
GNU LilyPond-- -- |
||||||||||
|
Automatic staff changesVoices can switch automatically between the top and the bottom staff. The syntax for this is \autochange Staff \context Voice { ...music... }
The autochanger switches on basis of pitch (central C is the turning
point), and it looks ahead skipping over rests to switch rests in
advance. Here is a practical example:
\score { \notes \context PianoStaff <
\context Staff = "up" {
\autochange Staff \context Voice = VA < \relative c' {
g4 a b c d r4 a g } > }
\context Staff = "down" {
\clef bass
s1*2
} > }
Spacer rests are used to prevent the bottom staff from terminating too soon. |
||||||||||
|
Go back to index of LilyPond.
Please send GNU LilyPond questions and comments to lilypond-user@gnu.org. Please send comments on these web pages to (address unknown) Copyright (c) 1997--2002 Han-Wen Nienhuys and Jan Nieuwenhuizen. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. |
|||||||||||
This page was built from LilyPond-1.6.6 (stable-branch) by