Jump to content

Fine-tuning manual beaming: 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:
By setting the <code>#'beaming</code> property, it is possible to override beaming rules. You may preferably want to use <code>\once</code> when doing so, as this property cannot be shared between objects.
By setting the <code>#'beaming</code> property, it is possible to override beaming rules. You may preferably want to use <code>\once</code> when doing so, as this property cannot be shared between objects.


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



Revision as of 18:56, 16 November 2025

By setting the #'beaming property, it is possible to override beaming rules. You may preferably want to use \once when doing so, as this property cannot be shared between objects.

\version "2.24"

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


\relative c'' {
  c32[ c
  \once \override Stem.beaming = #(cons (list 1 2) (list 0 2 4))
  c
  \once \override Stem.beaming = #(cons (list 0 2 4) (list 0 1 4))
  c c c]
}