Jump to content

Numbering single measure rests: Difference between revisions

From LilyPond wiki
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
No edit summary
Line 14: Line 14:
[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Preparing parts]]
[[Category:Preparing parts]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]][[Category:Snippet]]

Revision as of 22:56, 21 November 2025

Multi measure rests show their length by a number except for single measures. This can be changed by setting restNumberThreshold.

\version "2.24"

{
  \compressEmptyMeasures
  R1 R1*10 R1*11 \bar "||"
  \set restNumberThreshold = 0
  R1 R1*10 R1*11 \bar "||"
  \set restNumberThreshold = 10
  R1 R1*10 R1*11
}