]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/auto-change.ly
345aa9e69f02d88972cc49fe99f454ee8cf70b4c
[lilypond.git] / input / regression / auto-change.ly
1
2 \version "2.6.0"
3
4 \header {
5
6 texidoc=" Auto change piano staff switches voices between up
7 and down staves automatically rests are switched along with the coming
8 note. When central C is reached, staff is not yet switched (by default).
9
10 "
11 }
12     \layout { raggedright= ##t }
13
14 \score {
15          \context PianoStaff <<
16         \context Staff = "up" {
17                 \autochange  \context Voice = VA << \relative c' { g4 c e d c r4 a g } >>
18         }
19         \context Staff = "down" {
20                 \clef bass 
21                 s1*2
22         }
23
24         >>
25         
26 }
27