Jump to content

Manually controlling beam positions: Difference between revisions

From LilyPond wiki
m New category
mNo edit summary
 
Line 1: Line 1:
Beam positions may be controlled manually, by overriding the <code>positions</code> setting of the <code>Beam</code> grob.
Beam positions may be controlled manually by setting the <code>positions</code> property of the <code>Beam</code> grob.


<lilypond version="2.24">
<lilypond version="2.24">
Line 13: Line 13:
</lilypond>
</lilypond>


[[Category:Connecting notes]]
[[Category:Connecting notes]]
[[Category:Connecting notes]]
[[Category:Rhythms]]
[[Category:Rhythms]]

Latest revision as of 15:23, 12 January 2026

Beam positions may be controlled manually by setting the positions property of the Beam grob.

\version "2.24"

\relative c' {
  \time 2/4
  % from upper staff-line (position 2) to center (position 0)
  \override Beam.positions = #'(2 . 0)
  c8 c
  % from center to one above center (position 1)
  \override Beam.positions = #'(0 . 1)
  c8 c
}