Repeat percent and chords (alternate): Difference between revisions
Appearance
No edit summary |
m New category Tags: Mobile edit Mobile web edit |
||
| Line 24: | Line 24: | ||
[[Category:Chords]] | [[Category:Chords]] | ||
[[Category:Symbols and glyphs]][[Category:Snippet]] | [[Category:Symbols and glyphs]] | ||
[[Category:Snippet]] | |||
Latest revision as of 23:24, 21 November 2025
This snippet shows how to put the percent sign for a duplicate chord.
\version "2.24"
%% 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"
}
}