Spacing of grouped staves

In orchestral and other large scores, it is common to place staves in groups. The space between groups is typically larger than the space between staves of the same group.

Staff-groups (such as StaffGroup, ChoirStaff, etc.) are contexts that can contain one or more staves simultaneously.

The following properties affect the spacing of staves inside staff groups:

These grob properties are described individually above; see Within-system spacing properties.

The following example shows how properties of the StaffGrouper grob can affect the spacing of grouped staves:

\layout {
  \context {
    \override StaffGrouper.staff-staff-spacing.padding = #0
    \override StaffGrouper.staff-staff-spacing.basic-distance = #1

  \new PianoStaff \with {
    \override StaffGrouper
              .basic-distance = #20
  } <<
    \new Staff { c'1 }
    \new Staff { c'1 }

  \new StaffGroup <<
    \new Staff { c'1 }
    \new Staff { c'1 }

[image of music]

See also

Installed Files: ‘scm/define-grobs.scm’.

Snippets: Spacing.

Internals Reference: VerticalAxisGroup, StaffGrouper.

LilyPond — Notation Reference v2.25.8 (development-branch).