lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom NoteNames doesn't work in 2.22


From: Viktor Mastoridis
Subject: Custom NoteNames doesn't work in 2.22
Date: Fri, 11 Nov 2022 09:12:22 +0000

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

[Prev in Thread] Current Thread [Next in Thread]