Jump to content

Forcing measure width to adapt to a metronome mark’s width

From LilyPond wiki
Revision as of 22:53, 21 November 2025 by Lemzwerg (talk | contribs)

By default, metronome marks do not influence horizontal spacing.

This can be solved through a simple override, as shown in the second half of the example.

\version "2.24"

example = {
  \tempo "Allegro"
  R1*6
  \tempo "Rall."
  R1*2
  \tempo "A tempo"
  R1*8
}

{
  \compressMMRests {
    \example
    R1
    R1
    \override Score.MetronomeMark.extra-spacing-width = #'(-3 . 0)
    \example
  }
}