\version "2.19.40" viI = \relative c'' { \repeat unfold 8 { c4 d e d | } \tag #'viIsolo { \repeat unfold 4 { c16 d e f g f e d } } \tag #'viItutti { \repeat unfold 2 { c1 } } \repeat unfold 24 { c4 d e d | } } viII = \relative c' { \repeat unfold 16 { g4 c a b | } \tag #'viIIsolo { \repeat unfold 4 { g16 c e c g c e c } } \tag #'viIItutti { \repeat unfold 2 { g1 } } \repeat unfold 16 { g4 c a b | } } \paper { left-margin = 25\mm } \score { << \new GrandStaff << \new Staff = "vlnisolo" \with { instrumentName = #"Violin I solo" shortInstrumentName = "Vi I solo" \override VerticalAxisGroup.remove-empty = ##t \override VerticalAxisGroup.remove-first = ##t \override VerticalAxisGroup.remove-layer = 1 \override VerticalAxisGroup.keep-alive-group = #'vlni } \pushToTag #'viIsolo \unset Staff.keepAliveInterfaces \appendToTag #'viIsolo \set Staff.keepAliveInterfaces = #'() \keepWithTag #'viIsolo { \set Staff.keepAliveInterfaces = #'() \viI } \new Staff = "vlniisolo" \with { instrumentName = #"Violin II solo" shortInstrumentName = "Vi II solo" \override VerticalAxisGroup.remove-empty = ##t \override VerticalAxisGroup.remove-first = ##t \override VerticalAxisGroup.remove-layer = 1 \override VerticalAxisGroup.keep-alive-group = #'vlnii } \pushToTag #'viIIsolo \unset Staff.keepAliveInterfaces \appendToTag #'viIIsolo \set Staff.keepAliveInterfaces = #'() \keepWithTag #'viIIsolo { \set Staff.keepAliveInterfaces = #'() \viII } >> \new GrandStaff << \new Staff = "vlni" \with { instrumentName = #"Violin I" shortInstrumentName = "Vi I" \override VerticalAxisGroup.remove-empty = ##t \override VerticalAxisGroup.remove-first = ##t \override VerticalAxisGroup.remove-layer = 1 \override VerticalAxisGroup.keep-alive-group = #'vlni } \pushToTag #'viItutti \unset Staff.keepAliveInterfaces \appendToTag #'viItutti \set Staff.keepAliveInterfaces = #'() \keepWithTag #'viItutti { \set Staff.keepAliveInterfaces = #'() \viI } \new Staff = "vlnitutti" \with { instrumentName = #"Violin I tutti" shortInstrumentName = "Vi I tutti" \override VerticalAxisGroup.remove-layer = 2 \override VerticalAxisGroup.keep-alive-group = #'vlni } \pushToTag #'viItutti \unset Staff.keepAliveInterfaces \appendToTag #'viItutti \set Staff.keepAliveInterfaces = #'() \keepWithTag #'viItutti { \set Staff.keepAliveInterfaces = #'() \viI } \new Staff = "vlnii" \with { instrumentName = #"Violin II" shortInstrumentName = "Vi II" \override VerticalAxisGroup.remove-empty = ##t \override VerticalAxisGroup.remove-first = ##t \override VerticalAxisGroup.remove-layer = 1 \override VerticalAxisGroup.keep-alive-group = #'vlnii } \pushToTag #'viIItutti \unset Staff.keepAliveInterfaces \appendToTag #'viIItutti \set Staff.keepAliveInterfaces = #'() \keepWithTag #'viIItutti { \set Staff.keepAliveInterfaces = #'() \viII } \new Staff = "vlniitutti" \with { instrumentName = #"Violin II tutti" shortInstrumentName = "Vi II tutti" \override VerticalAxisGroup.remove-layer = 2 \override VerticalAxisGroup.keep-alive-group = #'vlnii } \pushToTag #'viIItutti \unset Staff.keepAliveInterfaces \appendToTag #'viIItutti \set Staff.keepAliveInterfaces = #'() \keepWithTag #'viIItutti { \set Staff.keepAliveInterfaces = #'() \viII } >> >> \layout { \context { \Score \consists Keep_alive_together_engraver } } }