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