Thank you, Aaron

This code worked, thanks...

\version "2.22.0"

customChordNames = {
   <c ees ges bes>
    -\markup \concat { m \super { 7 ( \flat 5 ) } }
}
customChordNameExceptions = #(append
  (sequential-music-to-chord-exceptions
   customChordNames
   #t)
  ignatzekExceptions)

\new ChordNames
\chordmode {
   d:m7.5-
   \set chordNameExceptions =
     #customChordNameExceptions
   d:m7.5-
}


I should have posted what I was trying to do. My mistake. It was pretty
similar. I don´t know if the position where the customChordNames in the
document matters. Something I missed.

Anyway, thanks again. Much appreciated.

Sincerely,

Gabriel Borin


Em sex., 9 de abr. de 2021 às 16:56, Aaron Hill <[email protected]>
escreveu:

> On 2021-04-09 12:06 pm, Gabriel Borin wrote:
> > Hello,
> >
> > I have been trying to write a bass part for a big band. Although I am
> > mostly happy with the general output of chord names, I don´t like
> > half-diminished notation in Lilypond. I prefer the descriptive "m7(b5)
> > or
> > min7(b5)".
> >
> > I have been trying to use the snippet under this link with no success:
> >
> https://lilypond.org/doc/v2.19/Documentation/notation/displaying-chords.en.html
>
> It is hard to say what is going wrong without an example of what you
> specifically tried.  Here is an example that specifically works with
> m7(b5) that you can compare and contrast with:
>
> %%%%
> \version "2.22.0"
>
> customChordNames = {
>    <c ees ges bes>
>     -\markup \concat { m \super { 7 ( \flat 5 ) } }
> }
> customChordNameExceptions = #(append
>   (sequential-music-to-chord-exceptions
>    customChordNames
>    #t)
>   ignatzekExceptions)
>
> \new ChordNames
> \chordmode {
>    d:m7.5-
>    \set chordNameExceptions =
>      #customChordNameExceptions
>    d:m7.5-
> }
> %%%%
>
> While requiring a little bit more logic, it is possible to use
> \chordmode so you do not have to type out <c ees ges bes>:
>
> %%%%
> \version "2.22.0"
>
> customChordNamesUsingChordMode = {
>    \chordmode { c:m7.5- }
>     -\markup \concat { m \super { 7 ( \flat 5 ) } }
> }
> customChordNameExceptionsUsingChordMode = #(append
>   (sequential-music-to-chord-exceptions
>    (make-sequential-music
>     (extract-typed-music
>      customChordNamesUsingChordMode
>      'event-chord))
>    #t)
>   ignatzekExceptions)
>
> \new ChordNames
> \chordmode {
>    d:m7.5-
>    \set chordNameExceptions =
>      #customChordNameExceptionsUsingChordMode
>    d:m7.5-
> }
> %%%%
>
>
> -- Aaron Hill
>

Reply via email to