Jump to content

Altering the number of stems in a beam: Difference between revisions

From LilyPond wiki
No edit summary
m New category
 
Line 24: Line 24:
[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Connecting notes]]
[[Category:Connecting notes]]
[[Category:Tweaks and overrides]][[Category:Snippet]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Latest revision as of 23:32, 21 November 2025

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"

%% 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
}