4 texidoc = "The @code{VerticalAxisGroup.remove-layer}
5 property can be used for typesetting temporary divisi staves where
6 the switch to split staves is done only at line breaks such that all
7 complex passages are rendered in separate staves."
10 boring = \set Staff.keepAliveInterfaces = #'()
11 tricky = \unset Staff.keepAliveInterfaces
14 \boring \repeat unfold 100 d4
16 \boring \repeat unfold 98 d4
21 \boring \repeat unfold 100 g4
23 \boring \repeat unfold 98 g4
28 \new StaffGroup \with { \consists "Keep_alive_together_engraver" }
30 \new Staff \with { instrumentName = "Violin I"
31 shortInstrumentName = "V I"
32 \override VerticalAxisGroup.remove-empty = ##t
33 \override VerticalAxisGroup.remove-first = ##t
34 \override VerticalAxisGroup.remove-layer = 1
37 \new Staff \with { instrumentName = "Violin II"
38 shortInstrumentName = "V II"
39 \override VerticalAxisGroup.remove-empty = ##t
40 \override VerticalAxisGroup.remove-first = ##t
41 \override VerticalAxisGroup.remove-layer = 1
44 \new Staff \with { instrumentName = "Violins"
45 shortInstrumentName = "V I&II"
46 \override VerticalAxisGroup.remove-layer = 2
48 << \violI \\ \violII >>