X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Ftest%2Fstaff-container.ly;h=81791cf134ced2c1af9c3c4adf902d25a4c71aaa;hb=8d0cad9613059c29d638f6d74b7d06ef7dddc90f;hp=485a5b3192df4cf993f2a065a767cd97d39fad2c;hpb=955f829883aa125b2b633b1e71f6256da5b773fa;p=lilypond.git diff --git a/input/test/staff-container.ly b/input/test/staff-container.ly index 485a5b3192..81791cf134 100644 --- a/input/test/staff-container.ly +++ b/input/test/staff-container.ly @@ -1,17 +1,17 @@ -#(ly:set-option 'old-relative) -\version "1.9.0" +\version "2.10.0" \header { 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. +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.) " @@ -19,51 +19,48 @@ what you would expect. -%% -%% s4 would create a staff. -%% -quarterSkip = #(make-nonevent-skip (ly:make-duration 2 0)) - \score { - \notes \relative c'' < - \context StaffContainer = SA { + \relative c'' << + \new StaffContainer { - %% need < >, otherwise we descend to the voice inside SA - < \context Staff = SA { c4 c4 } > - \quarterSkip + %% need << >>, otherwise we descend to the voice inside SA + << \new Staff { c4 c4 } >> + \skip 4 % s4 would create staff. - < \context Staff = SB { b4 b4 } > + << \new Staff { b4 b4 } >> } - \context StaffContainer =SB { - \quarterSkip - < \context Staff { e d f } > - \quarterSkip + \new StaffContainer { + \skip 4 + << \context Staff { e d f \bar ":|" } >> + \skip 4 } - > + >> -\paper { - \translator { - \ScoreContext - \accepts StaffContainer - \denies Staff + \layout { + \context { + \Score + \accepts StaffContainer + \denies Staff } - \translator { - \type Engraver_group_engraver - \consists Clef_engraver - \consists Time_signature_engraver - \consistsend "Axis_group_engraver" - \accepts "Staff" - - \name StaffContainer + \context { + \type Engraver_group + \consists Clef_engraver + \consists Time_signature_engraver + \consists Separating_line_group_engraver + \consists "Axis_group_engraver" + \accepts "Staff" + + \name StaffContainer } - \translator { - \StaffContext - \remove Axis_group_engraver - \remove Clef_engraver - \remove Time_signature_engraver + \context { + \Staff + \remove Axis_group_engraver + \remove Separating_line_group_engraver + \remove Clef_engraver + \remove Time_signature_engraver } - raggedright=##t -} + ragged-right=##t + } }