1\version "2.21.6"
2
3\header {
4  texidoc = "Test for cross-staff beams.  Three issues are covered.  All stems,
5  beams, and note heads should be positioned correctly and there should be no
6  programming errors."
7}
8
9up = \change Staff = "up"
10dn = \change Staff = "down"
11
12% Issue 4182
13\new PianoStaff <<
14  \time 2/4
15  \new Staff = "up"
16  s2
17  \new Staff = "down" <<
18    {s8*3 s8 \p }
19    { g'8[ \up e' \dn g' \up c'] }
20  >>
21>>
22
23% Issue 4691
24<<
25  \new PianoStaff \autoChange { c'''16[ c''' c''' c] }
26  \new Staff { s4\p }
27>>
28
29% Issue 6004
30\new PianoStaff \transpose c c' <<
31  \time 2/4
32  \new Staff = "up"
33  s2
34  \new Staff = "down" <<
35    { s8*3 s8 \p }
36    { <g a>8[ \up <e f> \dn <g a> \up <c d>] }
37  >>
38>>
39