Next: Staff symbol, Up: Displaying staves
Many scores consist of more than one staff. These staves can be grouped in several different ways:
GrandStaff
, the group is started with a brace
at the left, and bar lines are connected between the staves.
\new GrandStaff \relative << \new Staff { c1 c } \new Staff { c c } >>
StaffGroup
, the bar lines will be drawn through
all the staves, but the group is started with a bracket.
\new StaffGroup \relative << \new Staff { c1 c } \new Staff { c c } >>
ChoirStaff
, the group is started with a
bracket, but bar lines are not connected.
\new ChoirStaff \relative << \new Staff { c1 c } \new Staff { c c } >>
\relative << \new Staff { c1 c } \new Staff { c c } >>
In addition to these four staff group types, other groupings can
be produced by changing various properties. E.g., the
‘Mensurstriche’ layout common in Renaissance music, with
bar lines running between but not through the staves, can be
produced from a StaffGroup
or GrandStaff
context if
the bar lines are made transparent in the Staff
itself, with
the command \override Staff.BarLine #'transparent = ##t
Staff groups can be nested, using the context
InnerStaffGroup
or InnerChoirStaff
; see
More complex nesting can be accomplished using the property
systemStartDelimiterHierarchy
:
\new StaffGroup \relative << \set StaffGroup.systemStartDelimiterHierarchy = #'(SystemStartSquare (SystemStartBracket a (SystemStartSquare b)) d) \new Staff { c1 } \new Staff { c1 } \new Staff { c1 } \new Staff { c1 } \new Staff { c1 } >>
Each staff group context sets the property
systemStartDelimiter
to one of the values
SystemStartBar, SystemStartBrace,
and SystemStartBracket. A fourth delimiter,
systemStartSquare
, is also available, but must be
instantiated manually
To display a bracket even if there is only one staff, see
Music Glossary: brace, staff, staves bracket.
Snippets: Staff
Internals Reference: ChoirStaff,
GrandStaff, StaffGroup,
SystemStartBar, SystemStartBrace,
SystemStartBracket,
systemStartDelimiterHierarchy.
Next: Staff symbol, Up: Displaying staves
This page is for LilyPond-2.11.40 (development-branch).
Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.
Your suggestions for the documentation are welcome.