Jump to content

Percent repeat count visibility

From LilyPond wiki
(Redirected from LSR 590)

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