Jump to content

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

From LilyPond wiki
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
No edit summary
Line 24: Line 24:
[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Connecting notes]]
[[Category:Connecting notes]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]][[Category:Snippet]]

Revision as of 22:46, 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
}