Making cross-staff beams look better: Difference between revisions

m New category
Tags: Mobile edit Mobile web edit
Improve
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Cross-staff beams may not look always good; this snippet demonstrates how to get better results.
Cross-staff beams might be very steep, which can be ugly sometimes.  This snippet demonstrates how to change that.
 
<lilypond version="2.24" full>
%% http://lsr.di.unimi.it/LSR/Item?id=508
 


<lilypond version="2.24">
\score {
\score {
   \new PianoStaff <<
   \new PianoStaff <<
Line 11: Line 8:
   \context Staff = LH
   \context Staff = LH
     \relative c' {
     \relative c' {
     \stemDown % Change into \stemUp to fix the bug
     \stemDown
     c,8 [ g'
     c,8 [ g'
    \change Staff = RH
      \change Staff = RH
    d' a' e' b' ]
      d' a' e' b' ] |
    % This makes the second beam look much better.
     \override Beam.concaveness = #1
     \override Beam.concaveness = #0
     b [ e, a, d,
     b [ e, a, d,
    \change Staff = LH
      \change Staff = LH
    g, c, ]
      g, c, ] |
   }
   }
   >>
   >>
Line 26: Line 22:
% Prevent bad cropping.
% Prevent bad cropping.
\markup \null
\markup \null
\paper { tagline = ##f }
</lilypond>
</lilypond>