Jump to content

Spacing out percent repeats with hidden notes

From LilyPond wiki
Revision as of 22:35, 26 October 2025 by Jean Abou Samra (talk | contribs) (Import snippet from LSR)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

If you don't like the spacing used for percent repeats, you can enlarge the percent bars by suitably adding hidden notes.

\version "2.24.0"

%% http://lsr.di.unimi.it/LSR/Item?id=11

\new Staff <<

  \new Voice {
    \repeat percent 3 \relative c'' { e e e e }
    \repeat percent 3 \relative c'' { e e e e }
  }
  
  \new Voice {
    s1 s s
    s1 \hideNotes \repeat unfold 8 c4 \unHideNotes 
  }

>>