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))
{ 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 ...
HTH
Jan-Peter
On 12.04.2014 12:48, Thomas Morley wrote:
> Hi folks,
>
> regard the following code and terminal output
>
> \version "2.19.3"
>
> #(display-scheme-music #{ _2 #})
>
> (make-music
> 'FingeringEvent
> 'direction
> -1
> 'digit
> 2)
>
> This is all as expected.
>
> Though, how to insert a number from a variable or procedure?
> The following fails:
>
> #(display-scheme-music (let ((n 2)) #{ _$n #}))
>
> How to do it correctly?
>
>
> Cheers,
> Harm
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user