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
m New category
 
(One intermediate revision by the same user not shown)
Line 25: Line 25:
[[Category:Connecting notes]]
[[Category:Connecting notes]]
[[Category:Tweaks and overrides]]
[[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
}