Jump to content

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

From LilyPond wiki
Import snippet from LSR
 
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
Line 1: Line 1:
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.
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.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=98
%% http://lsr.di.unimi.it/LSR/Item?id=98



Revision as of 18:50, 16 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
}