]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/remove-empty-staves-auto-knee.ly
2b01d274340b3b035216475242737e410aeaaf15
[lilypond.git] / input / regression / remove-empty-staves-auto-knee.ly
1 \version "2.14.0"
2
3 \header {
4   texidoc = "
5 RemoveEmptyStaves should keep the pre-existing value of
6 @code{auto-knee-gap}.  In this case, the cross-staff beam
7 should be between the two staves.
8 "
9 }
10
11 staffMusic = \new StaffGroup {
12   <<
13     \new Staff = "rh" {
14       \relative c' {
15         c1 \break
16         c1 \break
17         c8[ c c c
18         \change Staff = "lh"
19         g, g g g]
20         \change Staff = "rh"
21         c1
22       }
23     }
24     \new Staff = "lh" {
25       \relative c {
26         \clef bass
27         c1
28         R1
29         R1
30         R1
31       }
32     }
33   >>
34 }
35
36 \score {
37   \staffMusic
38 }
39
40 \layout {
41   ragged-right = ##t
42   \context {
43     \Staff
44     \override Beam #'auto-knee-gap = #4.5
45     \RemoveEmptyStaves
46   }
47 }
48