Repeat percent and chords (alternate)
Appearance
This snippet shows how to put the percent sign for a duplicate chord.
\version "2.24.0"
%% Credits: Klaus Blum
%% => http://lilypond.1069038.n5.nabble.com/feature-request-getting-repeat-percent-to-work-in-ChordNames-td174393.html
\chords {
\repeat percent 4 { a2:m f }
\repeat percent 4 { g1 c }
}
\layout {
\context {
\ChordNames
\consists "Percent_repeat_engraver"
\consists "Double_percent_repeat_engraver"
\override ChordName.Y-offset = #-1
% delete the following two lines if you don't need barlines:
\override BarLine.bar-extent = #'(-2 . 2)
\consists "Bar_engraver"
}
}