Making cross-staff beams look better: Difference between revisions
Appearance
m New category Tags: Mobile edit Mobile web edit |
mNo edit summary |
||
| Line 1: | Line 1: | ||
Cross-staff beams may not look always good; this snippet demonstrates how to get better results. | Cross-staff beams may not look always good; this snippet demonstrates how to get better results. | ||
<lilypond version="2.24" | <lilypond version="2.24"> | ||
\score { | \score { | ||
\new PianoStaff << | \new PianoStaff << | ||
| Line 26: | Line 23: | ||
% Prevent bad cropping. | % Prevent bad cropping. | ||
\markup \null | \markup \null | ||
</lilypond> | </lilypond> | ||
Revision as of 08:05, 11 March 2026
Cross-staff beams may not look always good; this snippet demonstrates how to get better results.
\version "2.24"
\score {
\new PianoStaff <<
\new Staff = "RH" { \clef treble \time 3/4 s2.*2 }
\new Staff = "LH" { \clef bass \time 3/4 s2.*2 }
\context Staff = LH
\relative c' {
\stemDown % Change into \stemUp to fix the bug
c,8 [ g'
\change Staff = RH
d' a' e' b' ]
% This makes the second beam look much better.
\override Beam.concaveness = #0
b [ e, a, d,
\change Staff = LH
g, c, ]
}
>>
}
% Prevent bad cropping.
\markup \null