Nick Payne <nick.pa...@internode.on.net> writes: > 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) tir = #(define-event-function (parser location fingnum) > (number?) > #{ > \rightHandFinger $fingnum > #}) > > apo = #(define-event-function (fingnum) apo = #(define-event-function (parser location fingnum) > (number?) > #{ > \tweak digit-names ##("P" "I" "M" "A" "X") > \rightHandFinger $fingnum > #}) > > > { c'\tir 1 f'\apo 2 }
Some changes are addictive. parser/location went away only in 2.19.22. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user