| [ << Contexts and engravers ] | [Top][Contents] | [ Tweaks and overrides >> ] |
| [ < Creating custom key signatures ] | [ Up : Contexts and engravers ] | [ Defining an engraver in Scheme: ambitus engraver > ] |
Cross staff stems
This snippet shows the use of the Span_stem_engraver and
\crossStaff to connect stems across staves automatically.
The stem length need not be specified, as the variable distance between noteheads and staves is calculated automatically.
\layout { \context { \PianoStaff \consists "Span_stem_engraver" } } { \new PianoStaff << \new Staff { <b d'>4 r d'16\> e'8. g8 r\! e'8 f' g'4 e'2 } \new Staff { \clef bass \voiceOne \autoBeamOff \crossStaff { <e g>4 e, g16 a8. c8} d \autoBeamOn g8 f g4 c2 } >> }
| [ << Contexts and engravers ] | [Top][Contents] | [ Tweaks and overrides >> ] |
| [ < Creating custom key signatures ] | [ Up : Contexts and engravers ] | [ Defining an engraver in Scheme: ambitus engraver > ] |
![[image of music]](../5e/lily-945ce180.png)