Here we go again: % -------------------------------------------------------------------------
\version "2.18.2" \paper { ragged-right = ##f } #(define-markup-command (instNameI layout props text) (markup?) (interpret-markup layout props #{ \markup { \hcenter-in #10 $text } #})) instNameII = #(define-music-function (parser location text) (markup?) #{ \balloonLengthOff \override BalloonTextItem #'annotation-line = ##f \override BalloonTextItem #'annotation-balloon = ##f \balloonGrobText #'Rest #'(-10 . 0) \markup { \hcenter-in #10 $text } \grace {\hide r8} #}) sortClef = { \override Score.BreakAlignment #'break-align-orders = #' #((left-edge cue-end-clef breathing-sign staff-bar clef cue-clef key-cancellation key-signature ambitus time-signature custos) (left-edge staff-bar cue-end-clef breathing-sign clef cue-clef key-cancellation key-signature ambitus time-signature custos) (left-edge breathing-sign staff-bar clef key-cancellation key-signature ambitus time-signature cue-clef custos)) % \once \override Score.Clef.break-visibility = #'#(#f #t #t) } fluteMusicII = { \clef treble \instNameII "Flute" R1*4 } bassoonMusicII = { \clef bass \instNameII "Bassoon" R1 \override Staff.BarLine.allow-span-bar = ##f R1*3 } violinIMusicI = { \clef treble R1*4 } violinIIMusicI = { \clef treble R1*4 } violaMusicI = { \clef alto R1*4 } violoncelloMusicI = { \clef bass R1*4 } violinIMusicII = { \clef treble R1*4 } violinIIMusicII = { \clef treble R1*4 } violaMusicII = { \clef alto R1*4 } violoncelloMusicII = { \clef bass R1*4 } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \score { << \new StaffGroup << \new Staff = "violinIStaff" \with { instrumentName = \markup \instNameI "Violin I" shortInstrumentName = "Vln. I" } { \violinIMusicI \violinIMusicII } \new Staff \with { instrumentName = \markup \instNameI "Violin II" shortInstrumentName = "Vln. II" } { \violinIIMusicI \violinIIMusicII } \new Staff \with { instrumentName = \markup \instNameI "Viola" shortInstrumentName = "Vla." } { \violaMusicI \violaMusicII } \new Staff \with { instrumentName = \markup \instNameI "Violoncello" shortInstrumentName = "Vlc." } { \violoncelloMusicI \violoncelloMusicII } >> { \skip 1*4 % Strange: the more time is skipped here, the more the instrument names are moved to the left \once \override Staff.BarLine.allow-span-bar = ##t % unfortunately, "once" doesn't work here, hence the addition in the bassoon part \sortClef \once \override Score.Clef.full-size-change = ##t \new StaffGroup \with { alignAboveContext = #"violinIStaff" } << \new Staff \with { instrumentName = "Flute" shortInstrumentName = "Flt." } \fluteMusicII \new Staff \with { instrumentName = "Bassoon" shortInstrumentName = "Bsn." } \bassoonMusicII >> } >> \layout { \context { \Staff \override InstrumentName.X-offset = #-7 % doesn't work for the woodwinds } \context { \Voice \consists "Balloon_engraver" } } } % ------------------------------------------------------------------------- Drawback: The instrument names for the woodwinds are attached to invisible (grace-) rests that consume additional space. Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/Creating-cut-away-or-scrapbook-scores-in-LilyPond-tp177436p177477.html Sent from the User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user