-
+\version "2.1.22"
\header {
- texidoc = "By splitting the grouping (Axis_group_engraver) and
-creation functionality into separate contexts, you can override
-interesting things. You can also drop the \consistsend feature.";
+ texidoc = "
+
+Container by splitting the grouping (Axis_group_engraver) and creation
+functionality into separate contexts, you can override interesting
+things.
+
+Notation like this is used in modern scores. Note that LilyPond is not
+especially prepared for it: the clefs and time-signatures don't do
+what you would expect.
+
+ "
+
+ }
-}
\score {
- \notes <
- \context StaffContainer = SA { \property StaffContainer.StaffSymbol \set
- #'staff-space = #0.8
- \context Staff { c4 c4 } }
- \context StaffContainer =SB { \context Staff { d f } }
- >
+ \notes \relative c'' <<
+ \new StaffContainer {
+
+ %% need << >>, otherwise we descend to the voice inside SA
+ << \new Staff { c4 c4 } >>
+ \skip 4 % s4 would create staff.
+
+ << \new Staff { b4 b4 } >>
+ }
+ \new StaffContainer {
+ \skip 4
+ << \context Staff { e d f \bar ":|" } >>
+ \skip 4
+ }
+ >>
\paper {
\translator {
\ScoreContext
- \accepts StaffContainer;
- \denies Staff;
+ \accepts StaffContainer
+ \denies Staff
}
\translator {
- \type Engraver_group_engraver;
- \consists "Axis_group_engraver";
- \accepts "Staff";
- \name StaffContainer;
-
+ \type Engraver_group_engraver
+ \consists Clef_engraver
+ \consists Time_signature_engraver
+ \consists Separating_line_group_engraver
+ \consistsend "Axis_group_engraver"
+ \accepts "Staff"
+
+ \name StaffContainer
}
\translator {
\StaffContext
- \remove Axis_group_engraver;
+ \remove Axis_group_engraver
+ \remove Separating_line_group_engraver
+ \remove Clef_engraver
+ \remove Time_signature_engraver
}
+ raggedright=##t
}
}
+