Repeat percent and chords: Difference between revisions
Appearance
Import snippet from LSR |
m New category |
||
| (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"> | ||
% http://lsr.di.unimi.it/LSR/Item?u=1&id=908 | % http://lsr.di.unimi.it/LSR/Item?u=1&id=908 | ||
| Line 36: | Line 36: | ||
[[Category:Symbols and glyphs]] | [[Category:Symbols and glyphs]] | ||
[[Category:Workaround]] | [[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
}