[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Underlining fingering instructions without loosing positioning
From: |
Neil Puttock |
Subject: |
Re: Underlining fingering instructions without loosing positioning |
Date: |
Mon, 22 Mar 2010 21:49:47 +0000 |
On 21 March 2010 13:08, Morten <address@hidden> wrote:
> The \finger apparently ensures the correct font, but is there some command
> to make it "behave" or position itself like a fingering instruction?
Use the 'tweaks property to override the Fingering stencil:
underlineFinger =
#(define-music-function (parser location finger) (integer?)
(let ((music (make-music 'FingeringEvent)))
(set! (ly:music-property music 'digit) finger)
(set! (ly:music-property music 'tweaks)
(acons 'stencil (lambda (grob)
(grob-interpret-markup
grob
(markup #:underline (number->string finger))))
(ly:music-property music 'tweaks)))
music))
\relative c' {
c-\underlineFinger #4
}
Regards,
Neil