Hello list,

The construct below used to work for my educational needs up to 2.20.
Now in 2.22 it doesn't work anymore and it's beyond my understanding to fix
it.
I passed update.ly in Frescobaldi, but no joy.
Please help?
--------------

\version "2.22.0"
music =\relative c' { c4 d e f}
chimenames =
#`(
    ("c" . "C")
  ("d" . "D")
   ("e" . "E")
   ("f" . "F")
   )

  ChimeNoteNames =
#(lambda (grob)
   (let* ((default-name (ly:grob-property grob 'text))
          (new-name (assoc-get default-name chimenames)))
         (ly:grob-set-property! grob 'text new-name)
   (ly:text-interface::print grob)))


   \new StaffGroup
<<
\new Staff \music
 \new NoteNames \with {
  \override NoteName #'stencil = #ChimeNoteNames
    }
      \music
  >>
---
Viktor Mastoridis

Reply via email to