Jump to content

Multi-measure rest length control

From LilyPond wiki
Revision as of 08:12, 8 December 2025 by Lemzwerg (talk | contribs) (Make MM rests less wide to avoid line break in the PDF version of 'Snippets')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Multi-measure rests have a length according to their total duration, which is under the control of the space-increment property of the MultiMeasureRest grob; its default value is 2.

\version "2.24"

\relative c' {
  \omit Staff.TimeSignature
  \compressEmptyMeasures

  R1*2 R1*4 R1*64 R1*16 \break
  \override MultiMeasureRest.space-increment = 4
  R1*2 R1*4 R1*64 R1*16
}

\layout {
  ragged-right = ##t
}