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 <https://lilypond.org/doc/v2.25/Documentation/snippets/chords_003a-chord-name-exceptions> 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? 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}} \new Score << \new ChordNames {\songHarmony} \new Staff \relative c' {f2 d2} >> [image: image.png] On Thu, Mar 13, 2025 at 9:58 PM stefano franchi <stefano.fran...@gmail.com> wrote: > > 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: 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? > > > -- > __________________________________________________ > Stefano Franchi > > stefano.fran...@gmail.com <stef...@tamu.edu> > *https://www.researchgate.net/profile/Stefano_Franchi* > <https://www.researchgate.net/profile/Stefano_Franchi> > -- __________________________________________________ Stefano Franchi stefano.fran...@gmail.com <stef...@tamu.edu> *https://www.researchgate.net/profile/Stefano_Franchi* <https://www.researchgate.net/profile/Stefano_Franchi>