Repeat percent and chords: Difference between revisions
Appearance
No edit summary |
m New category |
||
| Line 35: | Line 35: | ||
[[Category:Chords]] | [[Category:Chords]] | ||
[[Category:Symbols and glyphs]] | [[Category:Symbols and glyphs]] | ||
[[Category:Workaround]][[Category:Snippet]] | [[Category:Workaround]] | ||
[[Category:Snippet]] | |||
Latest revision as of 23:34, 21 November 2025
This snippet shows how to put the percent sign for a duplicate chord.
\version "2.24"
% http://lsr.di.unimi.it/LSR/Item?u=1&id=908
%by Robin Bannister
%=> http://lilypond.1069038.n5.nabble.com/more-leadsheet-questions-td160661.html
%=> http://lists.gnu.org/archive/html/lilypond-user/2009-03/msg00556.html
simile = \markup {
\combine
\translate #'(0.2 . 1.5)
\draw-circle #0.22 #0 ##t
\combine
\translate #'(1.8 . 0.5)
\draw-circle #0.22 #0 ##t
\rotate #90
\translate#'(0 . 2)
\beam #2 #-1 #0.58
}
% optional :
% simile = \markup { \bold \fontsize #1 \char ##x066A } % arabic
simileCN = \once \override ChordNames.ChordName.text = #simile
\chords {
c1:m |
\simileCN c:m |
\simileCN c:m |
\simileCN c:m
}