1
2\version "2.21.0"
3
4\header {
5
6texidoc=" Auto change piano staff switches voices between up
7and down staves automatically; rests are switched along with the coming
8note. When central C is reached, staff is not yet switched (by default).
9
10"
11}
12\layout { ragged-right= ##t }
13
14\context PianoStaff <<
15  \context Staff = "up" {
16    \autoChange  \new Voice << \relative { g4 c e d c8 r r4 a g } >>
17  }
18  \context Staff = "down" {
19    \clef bass
20    s1*2
21  }
22
23>>
24
25