Previous: Grouping staves, Up: Displaying staves


Deeper nested staff groups

Two additional staff-group contexts are available that can be nested within a StaffGroup or ChoirStaff context: InnerStaffGroup and InnerChoirStaff. These contexts create a bracket next to the original bracket of their parent staff group.

An InnerStaffGroup is treated similarly to a StaffGroup; bar lines are connected between each stave within the context:

     
     \new StaffGroup <<
       \new Staff { c2 c | c2 c }
       \new InnerStaffGroup <<
         \new Staff { g2 g | g2 g }
         \new Staff { e2 e | e2 e }
       >>
     >>

[image of music]

Bar lines are not connected between staves of an InnerChoirStaff, just like a ChoirStaff:

     
     \new ChoirStaff <<
       \new Staff { c2 c | c2 c }
       \new InnerChoirStaff <<
         \new Staff { g2 g | g2 g }
         \new Staff { e2 e | e2 e }
       >>
       \new Staff { c1 | c1 }
     >>

[image of music]

Selected Snippets

Nesting staves

The property systemStartDelimiterHierarchy can be used to make more complex nested staff groups. The command \set StaffGroup.systemStartDelimiterHierarchy takes an alphabetical list of the number of staves produced. Before each staff a system start delimiter can be given. It has to be enclosed in brackets and takes as much staves as the brackets enclose. Elements in the list can be omitted, but the first bracket takes always the complete number of staves. The possibilities are SystemStartBar, SystemStartBracket, SystemStartBrace, and SystemStartSquare.

     
     \new StaffGroup
     \relative c'' <<
       \set StaffGroup.systemStartDelimiterHierarchy
         = #'(SystemStartSquare (SystemStartBrace (SystemStartBracket a
                                  (SystemStartSquare b)  ) c ) d)
       \new Staff { c1 }
       \new Staff { c1 }
       \new Staff { c1 }
       \new Staff { c1 }
       \new Staff { c1 }
     >>

[image of music]

See also

Notation Reference: Grouping staves, Instrument names.

Snippets: Staff notation.

Internals Reference: InnerStaffGroup, StaffGroup, InnerChoirStaff, ChoirStaff, SystemStartBar, SystemStartBrace, SystemStartBracket, SystemStartSquare.

Esta página corresponde a LilyPond-2.11.58 (rama de desarrollo).

Informe de los fallos a través de la lista en español lilypond-es, o en inglés a través de http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.

Se agradecen las sugerencias para la documentación.