Gianmaria Lari <[email protected]> writes:

> Perfect!!! Thank you David!
>
> Now, because they are a bit verbose, I would like to create a function with
> parameter.
> This is without parameter:
>
> \version "2.19.60"
> newFinger = \markup \underline \finger 3
> {\clef bass e,_\newFinger }
>
>
> How can I write somethingl ike:
>
> \newFinger #3
>
>
> ?

Well, version 2.19.60 has \etc but it does not work for mixtures of
incomplete music functions and markup commands.  So you'd need to do it
the hard way:

newFinger =
#(define-event-function (arg) (number-or-markup?)
  #{ -\markup \underline \finger
     #(if (number? arg) (number->string arg) arg)
  #})


-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to