lilypond-user
[Top][All Lists]
Advanced

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

Re: Letters as Left hand fingering


From: Thomas Morley
Subject: Re: Letters as Left hand fingering
Date: Wed, 16 May 2012 01:00:37 +0200

2012/5/15 Pierre Perol-Schneider <address@hidden>:
> 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



reply via email to

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