Jump to content

Percent repeat count visibility: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Percent repeat counters can be shown at regular intervals by setting the context property <code>repeatCountVisibility</code>.
Percent repeat counters can be shown at regular intervals by setting the context property <code>repeatCountVisibility</code>.


<lilypond version="2.24.0">
<lilypond version="2.24">
\relative c'' {
\relative c'' {
   \set countPercentRepeats = ##t
   \set countPercentRepeats = ##t
Line 14: Line 14:
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 23:23, 21 November 2025

Percent repeat counters can be shown at regular intervals by setting the context property repeatCountVisibility.

\version "2.24"

\relative c'' {
  \set countPercentRepeats = ##t
  \set repeatCountVisibility = #(every-nth-repeat-count-visible 5)
  \repeat percent 10 { c1 } \break
  \set repeatCountVisibility = #(every-nth-repeat-count-visible 2)
  \repeat percent 6 { c1 d1 }
}