-#(ly:set-option 'old-relative)
-\version "1.9.1"
+\version "2.3.22"
-\header{texidoc = "@cindex Staff Bracket
-Here's an example of staff brackets. "
+\header{ texidoc="@cindex Nested Staff Groups
+Staffs can be nested in various combinations. Here, @code{StaffGroup}
+and @code{ChoirStaff} produce similar straight brackets, whereas
+@code{GrandStaff} produces curly brackets. In @code{InnerStaffGroup}
+and @code{InnerChoirStaff}, the brackets are shifted leftwards.
+
+"
}
-\score
-{
- \context StaffGroup = "a" \notes \relative c'' <
- \context Staff = "a" { b1 }
- \context PianoStaff = "b" <
- \context Staff = "c" \notes { b1 }
- \context Staff = "d" \notes { b1 }
- >
- >
+\score {
+<<
+ \new StaffGroup <<
+ \new Staff {c' d' e' f'}
+ \new InnerStaffGroup <<
+ \new Staff {c' d' e' f'}
+ \new GrandStaff <<
+ \new Staff {c' d' e' f'}
+ \new Staff {c' d' e' f'}
+ >>
+ \new Staff {c' d' e' f'}
+ >>
+ \new ChoirStaff <<
+ \new Staff {c' d' e' f'}
+ \new InnerStaffGroup <<
+ \new Staff {c' d' e' f'}
+ >>
+ \new Staff {c' d' e' f'}
+ >>
+ >>
+ \new ChoirStaff <<
+ \new Staff {c' d' e' f'}
+ \new InnerChoirStaff <<
+ \new Staff {c' d' e' f'}
+ \new Staff {c' d' e' f'}
+ >>
+ \new Staff {c' d' e' f'}
+ >>
+
+>>
- \paper {
- \translator
- {
- \StaffContext
- \consists Instrument_name_engraver
- }
- raggedright=##t
- }
+ \layout { raggedright = ##t}
}