Jump to content

Changing beam thickness and spacing: 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:
To make beams thicker or thinner alter the <code>Beam.beam-thickness</code> property. To adjust the spacing between beams alter the <code>Beam.length-fraction</code> property.
To make beams thicker or thinner alter the <code>Beam.beam-thickness</code> property. To adjust the spacing between beams alter the <code>Beam.length-fraction</code> property.


<lilypond version="2.24.0">
<lilypond version="2.24">
\relative f' {
\relative f' {
   \time 1/8
   \time 1/8
Line 18: Line 18:
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 23:18, 21 November 2025

To make beams thicker or thinner alter the Beam.beam-thickness property. To adjust the spacing between beams alter the Beam.length-fraction property.

\version "2.24"

\relative f' {
  \time 1/8
  \override Beam.beam-thickness = #0.4
  \override Beam.length-fraction = #0.8
  c32 c c c
  \revert Beam.beam-thickness  % 0.48 is default thickness
  \revert Beam.length-fraction  % 1.0 is default spacing
  c32 c c c
  \override Beam.beam-thickness = #0.6
  \override Beam.length-fraction = #1.3
  c32 c c c 
}