Repeat percent and chords (alternate): Difference between revisions
Appearance
Import snippet from LSR |
m New category Tags: Mobile edit Mobile web edit |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
This snippet shows how to put the percent sign for a duplicate chord. | This snippet shows how to put the percent sign for a duplicate chord. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
%% Credits: Klaus Blum | %% Credits: Klaus Blum | ||
%% => http://lilypond.1069038.n5.nabble.com/feature-request-getting-repeat-percent-to-work-in-ChordNames-td174393.html | %% => http://lilypond.1069038.n5.nabble.com/feature-request-getting-repeat-percent-to-work-in-ChordNames-td174393.html | ||
| Line 25: | Line 25: | ||
[[Category:Chords]] | [[Category:Chords]] | ||
[[Category:Symbols and glyphs]] | [[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"
}
}