Andrea Rossato <[EMAIL PROTECTED]> writes:

> I'm trying to find a cleaner solution: is it possible to define that
> function inside a .ly file?
>
> I tried, by adding a # before the definition,  but I get an error message.

Putting the sharp sign should really do it:

#(define-public (note-name->italian-markup pitch)
   "Return Italian pitch markup for PITCH."
   (make-line-markup
     (list
       (make-simple-markup
         (vector-ref #("Do" "Re" "Mi" "Fa" "Sol" "La" "Si")
                     (ly:pitch-notename pitch)))
       (accidental->markup (ly:pitch-alteration pitch)))))

nicolas



_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to