@cindex cross-staff stems
@cindex stems, cross-staff
-Chords that cross staves may be produced by increasing the length
-of the stem in the lower staff, so it reaches the stem in the upper
-staff, or vice versa.
+Chords that cross staves may be produced:
@lilypond[ragged-right,verbatim,quote]
\new PianoStaff <<
<< {
\clef bass
\stemUp
- \override Stem #'length = #12
+ % stems may overlap the other staff
\override Stem #'cross-staff = ##t
+ % extend the stems to reach other other staff
+ \override Stem #'length = #12
+ % do not print extra flags
\override Stem #'flag-style = #'no-flag
a8 g4 f8
- } \\
- { f,2 d' }
+ } \\ {
+ f,2 d'
+ }
>>
}
>>