Jump to content

Measure counter (obsolete in 2.17): Difference between revisions

From LilyPond wiki
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:
This snippet provides a workaround for emitting measure counters using transparent percent repeats.
This snippet provides a workaround for emitting measure counters using transparent percent repeats.


<lilypond version="2.24.0">
<lilypond version="2.24">
<<
<<
   \context Voice = "foo" {
   \context Voice = "foo" {

Revision as of 18:54, 16 November 2025

This snippet provides a workaround for emitting measure counters using transparent percent repeats.

\version "2.24"

<<
  \context Voice = "foo" {
    \clef bass
    c4 r g r
    c4 r g r
    c4 r g r
    c4 r g r
  }
  \context Voice = "foo" {
    \set countPercentRepeats = ##t
    \hide PercentRepeat
    \override PercentRepeatCounter.staff-padding = #1
    \repeat percent 4 { s1 }
  }
>>