]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/remove-layer-symbol.ly
Imported Upstream version 2.19.48
[lilypond.git] / input / regression / remove-layer-symbol.ly
1 \version "2.19.48"
2
3 \header {
4   texidoc = "The @code{VerticalAxisGroup.remove-layer} property
5   can be used to keep staves alive with reference to other staves
6   in the @code{Keep_alive_together_engraver} group."
7 }
8
9 \layout {
10   indent = 40\mm
11   short-indent = 15\mm
12 }
13
14 \score {
15   <<
16     \new Staff \with {
17       instrumentName = "Continuous"
18       shortInstrumentName = "cont"
19     } { \repeat unfold 104 g'4 \bar "|." }
20     \new StaffGroup \with {
21       \consists Keep_alive_together_engraver
22     } <<
23       \new Staff \with {
24         keepAliveInterfaces = #'()
25         instrumentName = \markup \center-column { "Alive with A or B" }
26         shortInstrumentName = "with A or B"
27         \override VerticalAxisGroup.remove-empty = ##t
28         \override VerticalAxisGroup.remove-first = ##t
29         \override VerticalAxisGroup.remove-layer = #'any
30       } { \repeat unfold 104 c''4 }
31       \new Staff \with {
32         instrumentName = "A"
33         shortInstrumentName = "A"
34         \override VerticalAxisGroup.remove-empty = ##t
35         \override VerticalAxisGroup.remove-first = ##t
36         \override VerticalAxisGroup.remove-layer = ##f
37       } {
38         \repeat unfold 16 c'4
39         R1*4
40         \repeat unfold 16 c'4
41         R1*14
42       }
43       \new Staff \with {
44         keepAliveInterfaces = #'()
45         instrumentName = \markup \center-column { "Alive with A" }
46         shortInstrumentName = "with A"
47         \override VerticalAxisGroup.remove-empty = ##t
48         \override VerticalAxisGroup.remove-first = ##t
49         \override VerticalAxisGroup.remove-layer = #'above
50       } { \repeat unfold 104 c''4 }
51       \new Staff \with {
52         instrumentName = "B"
53         shortInstrumentName = "B"
54         \override VerticalAxisGroup.remove-empty = ##t
55         \override VerticalAxisGroup.remove-first = ##t
56         \override VerticalAxisGroup.remove-layer = ##f
57       } {
58         R1*8
59         \repeat unfold 16 c'4
60         R1*13
61         c'1
62       }
63     >>
64   >>
65 }