Previous: Staff switch lines, Up: Piano music


7.1.5 Cross staff stems

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.

     
     stemExtend = {
       \once \override Stem #'length = #10
       \once \override Stem #'cross-staff = ##t
     }
     noFlag = \once \override Stem #'flag-style = #'no-flag
     \new PianoStaff <<
       \new Staff {
         \stemDown \stemExtend
         f'4
         \stemExtend \noFlag
         f'8
       }
       \new Staff {
         \clef bass
         a4 a8
       }
     >>

[image of music]



Previous: Staff switch lines, Up: Piano music

Cette page documente LilyPond-2.11.28 (branche de développement).

Rapporter toute anomalie en français à lilypond-user-fr@gnu.org ou en anglais à http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs

Your suggestions for the documentation are welcome.