On Mar 13, 2025, at 10:24 PM, stefano franchi <stefano.fran...@gmail.com> wrote:
Edit: I became aware of chordNameExceptions just after posting, and it might be the solution to my problem. However, I do not understand how the snippet in the manual works. More precisely, I do not understand the second block of code:
% Convert music to list and prepend to existing exceptions.
chExceptions = #(append
(sequential-music-to-chord-exceptions chExceptionMusic #t)
ignatzekExceptions) 2. Unsurprisingly, given my cluelessness about the code above, it took me several tries before my clumsy attempts succeeded. Can anyone explain to me why it works?
By default, Lilypond uses Ignatzek chordname nomenclature.
You can create exceptions to this, as you note. You can create a chord exceptions file (e.g., MyChords.ily) and use \include to invoke it. I have a very large and extensive file called pop-chords.ily which made the rounds 10-15 years or so ago, which is what defines almost all chord outputs on my lead sheets. I don't like the look of the Ignatzek chords.
MWE: \version "2.24.0" \language "english"
chExceptionMusic = { <c ef gf bf f'>1-\markup { \super "ø add11" } }
chExceptions = #(append (sequential-music-to-chord-exceptions chExceptionMusic #t) ignatzekExceptions)
\layout { \set chordNameExceptions = #chExceptions } songHarmony = \relative c' {\chordmode {d2:m7.5-/f d2:m7.5-.11}}
You can sometimes alter the way the chordname is printed in the score by including the complete note stack. E.g., d2.min7.5-.9.11 will print differently than d2.min7.5-.11. Lilypond is very literal about input > output, hence its power but the input must abide by the rules.
\new Score << \new ChordNames {\songHarmony} \new Staff \relative c' {f2 d2} >>
I have a bar with two similar half-diminIshed chords (same root), but with an "add1" extension in the second one. I used the method shown in the following MWE to add the extension:
\version "2.24.0" \language "english" songHarmony = \relative c' {\chordmode {d2:m7.5-/f \set additionalPitchPrefix = #"add" d2:m7.5-.11}} \new Score << \new ChordNames {\songHarmony} \new Staff \relative c' {f2 d2} >>
Much to my surprise, however, Lilypond displays the first chord name with the usual slashed circle, but reverts to the alternative m7 b5 for the second one: ![image.png]() How can I get the same name for both chords? I don't really care about which one---but I do need both chords to be named consistently---either both with a slashed circle or both with the m7b5 moniker.
Suggestions?
|