It works perfectly thank you David. What's \etc? Any link to this command?
Thank you!!! g. On 13 June 2017 at 18:43, David Kastrup <d...@gnu.org> wrote: > Gianmaria Lari <gianmarial...@gmail.com> 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user