On Tue, Jul 2, 2024 at 10:48 AM Werner LEMBERG <[email protected]> wrote:

>
> Folks,
>
>
> how can I easily create a beam subdivision as shown in the attached
> image using the current development version 2.25.18?  The solution I
> came up with is extremely ugly...
>
>
>     Werner
>
> This may be slightly less ugly, but it still requires a function call
every place you want a beam subdivision:

...
  subdivideBeamManually =
#(define-music-function
     (beam-count note)
     (number? ly:music?)
   #{
     \once \set stemRightBeamCount = #beam-count
     #note
     \once \set stemLeftBeamCount = #beam-count
   #})

\score {
  {
    f'16 f'32
    \subdivideBeamManually #2 f'
      f' f' f' f'
    f'16 f'32 f' f'
    \subdivideBeamManually #2 f'
      f' f'

   }
}
...

HTH,

Carl

Reply via email to