Jump to content

Multi-measure rest length control: Difference between revisions

From LilyPond wiki
No edit summary
m Make MM rests less wide to avoid line break in the PDF version of 'Snippets'
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Multi-measure rests have length according to their total duration which is under the control of <code>MultiMeasureRest.space-increment</code>. Note that the default value is <code>2.0</code>.
Multi-measure rests have a length according to their total duration, which is under the control of the <code>space-increment</code> property of the <code>MultiMeasureRest</code> grob; its default value is&nbsp;2.


<lilypond version="2.24" full>
<lilypond version="2.24">
\relative c' {
\relative c' {
  \omit Staff.TimeSignature
   \compressEmptyMeasures
   \compressEmptyMeasures
   R1*2 R1*4 R1*64 R1*16
 
   \override Staff.MultiMeasureRest.space-increment = 2.5
   R1*2 R1*4 R1*64 R1*16 \break
   \override MultiMeasureRest.space-increment = 4
   R1*2 R1*4 R1*64 R1*16
   R1*2 R1*4 R1*64 R1*16
}
}


\paper { tagline = ##f }
\layout {
  ragged-right = ##t
}
</lilypond>
</lilypond>


[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 08:12, 8 December 2025

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
}