Hi Jean,

Are you adding this to the LSR?
I don't know if it would make sense to add it to the documentation as well,
personally I don't engrave scores that would use this.

Best regards,
Xavier

On Wed, 13 Mar 2024 at 09:55, Jean Abou Samra <j...@abou-samra.fr> wrote:

> Mahalo, X. I am using the naturalizeMusic function and will look into
> extending that.  Maybe that has some nuggets to mine.
>
> \naturalizeMusic is not going to work well on \chordmode music (it will
> destroy the interval in chords, leading to wrong chord names), but you can
> use code like this instead:
>
> \version "2.24.2"
>
> enharmonization = { c cis d ees e f fis g gis a bes b }
>
> converter = #(make-semitone->pitch (music-pitches enharmonization))
>
> \layout {
>   \set ChordNames.chordRootNamer =
>     #(lambda (pitch lowercase)
>        (note-name->markup (converter (ly:pitch-semitones pitch)) lowercase))
> }
>
> bflat = \chordmode { cis dis e fis gis a bis cis bes }
>
> \transpose cis' a {
>   \new ChordNames { \bflat  }
> }
>
> Best,
>
> Jean
>

Reply via email to