2012/5/15 Pierre Perol-Schneider <[email protected]>:
> Hi Group,
>
> Sometimes I need to put a letter in front of a number as a fingering.
> Is there any possibility to declare "m" (for ex;) as a number so that I
> could code <a-m1> as a fingering ?
Hi Pierre,
I'm not aware of any method to do it with that easy syntax: <a-m1>
But you may want to try:
\version "2.15.36"
letter =
#(define-music-function (parser location l fingering)(string? ly:music?)
(let* ((music (make-music 'FingeringEvent))
(finger (ly:music-property fingering 'digit))
(n (number->string finger)))
#{
\tweak #'text #(markup #:concat (;#:fontsize 6
#:normal-text l n))-$music
#}))
\relative c' {
<a-\letter x -1
cis-\letter y -2
e-\letter z -3>
}
HTH,
Harm
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user