1\version "2.19.21"
2
3\header {
4  texidoc = "Voices that go back and forth between staves do not confuse the spacing engine."
5}
6
7\paper { ragged-right = ##t }
8
9\new PianoStaff <<
10        \new Staff = "rh" \relative {
11                \time 6/8
12                bes'16 c d
13                \change Staff = lh
14                \stemUp bes a g
15                \change Staff = rh
16                \stemDown bes c d
17                \change Staff = lh
18                \clef bass
19                \stemUp bes, a g
20
21        }
22        \new Staff = "lh" \relative c' {
23                s2.
24        }
25>>
26
27\new PianoStaff <<
28        \new Staff = "rh" \relative {
29                \time 6/8
30                bes'16 c d
31                \change Staff = lh
32                \stemUp bes a g
33                \change Staff = rh
34                \stemDown bes c d
35                \change Staff = lh
36                \clef bass
37                \stemUp ces, a g
38
39        }
40        \new Staff = "lh" \relative c' {
41                s2.
42        }
43>>
44