Jan-Peter Voigt <[email protected]> writes:
> Hi Harm,
>
> I assume, you want to use this in some music-function ... (?)
> you can insert the displayed scheme-expression:
>
> %%%
> finger = #(define-event-function (parser location n)(integer?)
> (make-music 'FingeringEvent 'direction -1 'digit n))
No need to define it since 2.17.13
> { c''4\finger 2 }
>
> #(let ((n 4)) (display-scheme-music #{ \finger $n #}))
> %%%
>
> But unfortunately I don't know a shorter way to include it in such an
> included lilyexpression ...
> this would of course be handy, if you want to use parameters in a longer
> snippet ...
I don't think we allow fingering _shortcuts_ with number identifiers.
And really: we allow things like #{ -2\cm #} and that's quite hard to
distinguish then. It's actually a fringe case to allow #{ -4 #} as a
fingering, but as a _constant_ it would be pretty silly to put #{ #}
around a number.
--
David Kastrup
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user