Jump to content

Percent repeat count visibility: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
(No difference)

Latest revision as of 22:41, 26 October 2025

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

\version "2.24.0"

\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 }
}