Percent repeat count visibility: Difference between revisions
Appearance
Import snippet from LSR |
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 |
||
| 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 | <lilypond version="2.24"> | ||
\relative c'' { | \relative c'' { | ||
\set countPercentRepeats = ##t | \set countPercentRepeats = ##t | ||
Revision as of 18:54, 16 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 }
}