int(0) Altering the number of stems in a beam - LilyPond wiki Jump to content

Altering the number of stems in a beam

From LilyPond wiki

You can alter the number of stems in a beam. In this example, two sets of four 32nds are joined, as if they were 8th notes.

\version "2.24.0"

%% http://lsr.di.unimi.it/LSR/Item?id=98

\new Voice
\relative c' {
  \set Timing.beamExceptions =
  #'(                         
     (end .                   
      (                       
       ((1 . 32) . (4 4 4 4 4 4 4 4))   
      ))) 
  f32 g a b b a g f

  f32 g a
  \set stemRightBeamCount = #1 b
  \set stemLeftBeamCount = #1 b
  a g f
}