lilypond-user
[Top][All Lists]
Advanced

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

Re: Letters as note heads


From: Gloops
Subject: Re: Letters as note heads
Date: Mon, 7 Jan 2019 07:37:41 -0700 (MST)

Hello!
I am also interested in this code, but is it possible to have a "list-ref"
running on 12 rather than 7,
and remove the original alterations?
Do you believe that possible?
Thank you for all the help that everyone brings.
Musically

\relative c' {
   \override NoteHead.stencil = #(lambda (grob)
     (let* ((cause (ly:grob-property grob 'cause))
            (pitch (ly:event-property cause 'pitch))
            (notenames '("C" "C+" "D" "D+" "E" "F" "F+" "G" "G+" "A" "A+"
"B"))
            (notename (list-ref notenames (ly:pitch-notename pitch))))
       (grob-interpret-markup grob #{ \markup
         \halign #0 \vcenter \fontsize #-2 \sans \bold $notename #})))
   \hide Stem
   c4 cis d dis e f fis g gis a ais b
}



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



reply via email to

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