Jump to content

Fine-tuning manual beaming: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
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


Line 17: Line 17:
[[Category:Connecting notes]]
[[Category:Connecting notes]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Latest revision as of 23:28, 21 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]
}