Jump to content

Percent repeat counter: Difference between revisions

From LilyPond wiki
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Measure repeats of more than two repeats can get a counter when the convenient property is switched, as shown in this example:
Measure repeats of more than two repeats are printed with a counter if the <code>countPercentRepeats</code> context property is set.


<lilypond version="2.24">
<lilypond version="2.24">
Line 9: Line 9:


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

Latest revision as of 09:45, 4 December 2025

Measure repeats of more than two repeats are printed with a counter if the countPercentRepeats context property is set.

\version "2.24"

\relative c'' {
  \set countPercentRepeats = ##t
  \repeat percent 4 { c1 }
}