Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
LilyPond wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Cross-staff stems
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
This snippet shows how to use <code>Span_stem_engraver</code> and <code>\crossStaff</code> to connect stems across staves automatically. The stem length need not be specified, as the variable distance between noteheads and staves is calculated automatically. However, it is important that <code>\crossStaff</code> is applied to the correct voice or staff (i.e., on the opposite side of where a beam is or would be positioned) to get the desired effect. <lilypond version="2.24.0"> \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 \voiceTwo \autoBeamOff % Down to lower staff \crossStaff { e'8 e'8 } e'4 | } \new Staff { \clef bass \voiceOne \autoBeamOff % Up to upper staff \crossStaff { <e g>4 e, g16 a8. c8 } d | \autoBeamOn g8 f g4 \voiceTwo g8 g g4 | } >> </lilypond> [[Category:Included in the official documentation]] [[Category:Staff notation]] [[Category:Tweaks and overrides]] [[Category:Contexts and engravers]]
Summary:
Please note that all contributions to LilyPond wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Meta:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Cross-staff stems
Add topic