On 29/03/2025 22:40, Samuel Tardieu wrote:
Hi.
I'd like to include chord names, as they would be rendered on the score, in
markup text. For example, I'd like to be able to write something like
\markup { "Here you can also play:" \chordTexta:7 }
and have it rendered as "Here you can also play: A⁷". But I can't seem to find
what would be the \chordText command. Does it exist?
Jānis Rūcis wrote an extension to LilyPond to solve this problem.
https://github.com/parasti/lilypond-chord-markup.
One modification is needed to make the code compatible with recent
versions of LilyPond. Near the top of chord-markup.ly, change the line
(let ((clone (ly:parser-clone parser)))
to
(let ((clone (ly:parser-clone)))
--
Timothy Lanfear, Bristol, UK.