Jump to content

Adjusting grace note spacing: 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:
The space given to grace notes can be adjusted using the <code>spacing-increment</code> property of <code>Score.GraceSpacing</code>.
The space given to grace notes can be adjusted using the <code>spacing-increment</code> property of <code>Score.GraceSpacing</code>.


<lilypond version="2.24.0">
<lilypond version="2.24">
graceNotes = {
graceNotes = {
   \grace { c4 c8 c16 c32 }
   \grace { c4 c8 c16 c32 }

Revision as of 18:45, 16 November 2025

The space given to grace notes can be adjusted using the spacing-increment property of Score.GraceSpacing.

\version "2.24"

graceNotes = {
  \grace { c4 c8 c16 c32 }
  c8
}

\relative c'' {
  c8
  \graceNotes
  \override Score.GraceSpacing.spacing-increment = #2.0
  \graceNotes
  \revert Score.GraceSpacing.spacing-increment
  \graceNotes
}