]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/divisi-staves.ly
Imported Upstream version 2.19.45
[lilypond.git] / input / regression / divisi-staves.ly
1 \version "2.19.13"
2
3 \header {
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."
8 }
9
10 boring = \set Staff.keepAliveInterfaces = #'()
11 tricky = \unset Staff.keepAliveInterfaces
12
13 violI=\relative d' {
14   \boring \repeat unfold 100 d4
15   \tricky <d g'>2
16   \boring \repeat unfold 98 d4
17   \bar "|."
18 }
19
20 violII=\relative g {
21   \boring \repeat unfold 100 g4
22   \tricky <g d'>2
23   \boring \repeat unfold 98 g4
24   \bar "|."
25 }
26
27 \score {
28   \new StaffGroup \with { \consists "Keep_alive_together_engraver" }
29   <<
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
35                      }
36     \violI
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
42                      }
43     \violII
44     \new Staff \with { instrumentName = "Violins"
45                        shortInstrumentName = "V I&II"
46                        \override VerticalAxisGroup.remove-layer = 2
47                      }
48     <<  \violI \\ \violII  >>
49   >>
50   \layout {
51     short-indent = 2\cm
52     indent = 3\cm
53   }
54 }