> ---------- Forwarded message ----------
> From: Knute Snortum <[email protected]>
> To: [email protected]
> Cc:
> Bcc:
> Date: Wed, 26 Jun 2024 09:46:29 -0700
> Subject: How to lengthen stems in beamed groups
> Hi list,
>
> I'm hoping someone can give me insight into how to lengthen stems in
> beamed groups globally.
>
> LilyPond usually makes good assumptions and has great defaults, but in
> this situation it fails to create good stem lengths in beamed groups.  I've
> attached some sample code that illustrates the problem.  With the following
> line commented out, you can see that the stems are too short
> (stem-too-short.png):
>
> \override Stem.details.beamed-lengths = #'(3.5 4.1)
>
> With the above line uncommented, the stem lengths are better, except the
> second measure, right hand, third beat (stem-lengths-better.png).
>
> My questions are these: How do I tell LilyPond what length the shortest
> stem in a beamed group should be? (I tried playing
> with Stem.details.beamed-minimum-free-lengths, but its behavior seemed
> chaotic.)  And is there a better way to control stem lengths in beamed
> groups?
>
> --
> Knute Snortum
>


This may be too broad of a brush, since it also affects non-beamed stems.

      \override Stem.length-fraction = #(magstep 1.2)

But this is what I use, and I don't mind the extra-long non-breamed stems.


\version "2.24.0"
\language "english"

global = {
  \time 12/8
  \key f \major
}

rightHand = \relative {
  \global
  d''4.~\startTrillSpan d16\stopTrillSpan c bf a g f  bf8 g' e!  c bf g' |
  \noBreak
  a,16 g f e f a  d, f d bf g e'  f bf, a g a c  f,4 r8 |
}

leftHand = \relative {
  \global
  \clef bass
  f16 d bf a bf d  f, bf d f e! d  e c bf a bf c  g bf e g f e |
  f8 a, d  bf8.\trill a32 bf c8  f,4 r8  r16 c' a c f,8 |
}

\score {
  \new PianoStaff <<
    \new Staff {
      \override Stem.length-fraction = #(magstep 1.2)
      \rightHand
    }
    \new Staff {
      \override Stem.length-fraction = #(magstep 1.2)
      \leftHand
    }
  >>
  \layout {
    indent = 0
    \context {
      \Score
      % defaults = #'(3.26 3.5 3.6)
      \override Stem.details.beamed-lengths = #'(3.5 4.1)
      % defaults = #'(1.83 1.5 1.25)
      %\override Stem.details.beamed-minimum-free-lengths = #'(1.83 3.33)
      % defaults = #'(1.0 0.5 0.25)
      %\override Stem.details.stem-shorten = #'(1.0 0.5 0.25)
    }
  }
}


HTH,


Elaine Alt
415 . 341 .4954                                           "*Confusion is
highly underrated*"
[email protected]
Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to