%% DO NOT EDIT this file manually; it was automatically
%% generated from the LilyPond Wiki
%% (https://wiki.lilypond.community).
%%
%% Make any changes in the Wiki itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.24.0"

\header {
  categories = "Contexts and engravers, Staff notation, Tweaks and
                overrides"

  texidoc = "
The property @code{systemStartDelimiterHierarchy} can be used to make
more complex nested staff groups. The
@code{systemStartDelimiterHierarchy} property of the @code{StaffGroup}
context 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
@code{SystemStartBar}, @code{SystemStartBracket},
@code{SystemStartBrace}, and @code{SystemStartSquare}.
"

  doctitle = "Nesting staves"
} % begin verbatim


\new StaffGroup
\relative c'' <<
  \override StaffGroup.SystemStartSquare.collapse-height = 4
  \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 }
>>
