]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/nullvoice-change.ly
Issue 5116/2: Add regtest
[lilypond.git] / input / regression / nullvoice-change.ly
1 \version "2.19.59"
2
3 \header {
4   texidoc = "@samp{NullVoice} responds to @code{\\change Staff} as a
5 @samp{Voice} would.  In consequence, in the first shown system
6 it keeps a single treble-clef staff alive.  In the second
7 system, it is in a single bass-clef staff."
8 }
9
10 \layout { ragged-right = ##t }
11
12 music = \fixed c' {
13   c1
14   \break
15   \change Staff = "After"
16   c
17 }
18
19 \markup
20 \score-lines {
21   \new StaffGroup \with \RemoveAllEmptyStaves
22   <<
23     \new Staff = "Before" \new NullVoice \music
24     \new Staff = "After" {
25       \clef bass
26       $(skip-of-length music)
27     }
28   >>
29 }