On 24/09/2015 09:28, Sávio Ramos wrote:
I did this:
\version "2.18.2"
tir = \rightHandFinger #1
apo = \tweak digit-names ##("P" "I" "M" "A" "X") \rightHandFinger #1
{ c'\tir f'\apo }
And produces only "P" or "p" (image attached).
How can I change #2, #3, etc...
Pass the finger number as a parameter:
\version "2.18.2"
tir = #(define-event-function (fingnum)
(number?)
#{
\rightHandFinger $fingnum
#})
apo = #(define-event-function (fingnum)
(number?)
#{
\tweak digit-names ##("P" "I" "M" "A" "X")
\rightHandFinger $fingnum
#})
{ c'\tir 1 f'\apo 2 }
But I've never seen upper case letters used to indicate stroke
fingering, and there must be several hundred commercially engraved
guitar scores in my collection. For lower case stroke fingering, the
following is much simpler to enter and easier to read (you can't use
lower case p or a, as p is a dynamic indication and a is a note name, so
I use upper case for the shortcuts):
P=\rightHandFinger #1
I=\rightHandFinger #2
M=\rightHandFinger #3
A=\rightHandFinger #4
{ c'\P f'\I }
Nick Payne
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user