On Sun, Jun 1, 2025 at 12:22 AM Stefan Kägi <[email protected]> wrote:
> Hi,
>
> is there a way to control the slope of the beam of just one note before
> a line break?
> This doesn't look right to me:
>
>
> \version "2.24.4"
>
> \relative {
> \time 6/8
> \alterBroken positions #'((-7 . -6) (-5 . -1)) Beam
>
> a a a a8 [ \break e' a
> g'8 c e,] c4.
> }
>
I asked basically the same thing a few years ago and Jean gave me this
example using \forceStemLength (it sometimes throws a warning):
%%%
\version "2.24.4"
forceStemLength =
#(define-music-function (len) (number?)
(once
(propertyOverride
'(Stem after-line-breaking)
(lambda (grob)
(let ((beam (ly:grob-object grob 'beam)))
(ly:grob-property beam 'quantized-positions)
(ly:grob-set-property! grob 'length len))))))
\relative {
\time 6/8
\alterBroken positions #'((-7 . -6) (-5 . -1)) Beam
a a a \forceStemLength #6.5 a8 [ \break e' a
g'8 c e,] c4.
}
%%%
--
Knute Snortum