X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Ftest%2Fstaff-container.ly;h=55cce286afa812cbae523862781d087cca2f55ce;hb=51159f8679de00e6cd526ca2a16e1ea4d4294f81;hp=baa7cd25187cc53c8e05992fc456e8fa8ad88643;hpb=4eb6f42fc6ca20d65c788a73eb78dfcc22ea0453;p=lilypond.git diff --git a/input/test/staff-container.ly b/input/test/staff-container.ly index baa7cd2518..55cce286af 100644 --- a/input/test/staff-container.ly +++ b/input/test/staff-container.ly @@ -1,39 +1,66 @@ - +\version "2.3.4" \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 = " + +In this preliminary test of a modern score, the staff lines are washed +out temporarily. This is done by making a tuned @code{StaffContainer}, +which @code{\skip}s some notes without printing lines either and +creates a @code{\\new Staff} then in order to create the lines again. +(Be careful if you use this; it has been done by splitting the +grouping @code{Axis_group_engraver} and creating functionality into +separate contexts, but the clefs and time signatures may not 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 } } - > - -\paper { - \translator { - \ScoreContext - \accepts StaffContainer; - \denies Staff; + \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 } - \translator { - \type Engraver_group_engraver; - \consists "Axis_group_engraver"; - \accepts "Staff"; - \name StaffContainer; + >> + \paper { + \context { + \Score + \accepts StaffContainer + \denies Staff } - \translator { - \StaffContext - \remove Axis_group_engraver; + \context { + \type Engraver_group_engraver + \consists Clef_engraver + \consists Time_signature_engraver + \consists Separating_line_group_engraver + \consistsend "Axis_group_engraver" + \accepts "Staff" + + \name StaffContainer } + \context { + \Staff + \remove Axis_group_engraver + \remove Separating_line_group_engraver + \remove Clef_engraver + \remove Time_signature_engraver + } + raggedright=##t + } } -} +