Paolo Prete writes:
> The trivial example you provided doesn't use local Scheme variables
> inside the Lilypond code block of the "ritpp" function.
It is not prohibited reading the accompanying text. Let me quote the
relevant part again:
> Let me quote from the
The trivial example you provided doesn't use local Scheme variables inside the
Lilypond code block of the "ritpp" function.I definied "mypitch" and
"myduration" inside the "scheme part" and I don't understand if I can use them
inside the "#{ #}" scope
((mypitch (ly:music-property note 'pitch
Paolo Prete writes:
> Hello,
> I try to re-post my previous question in a more generic way: is it
> possible to define local variables in a scheme function and use them
> in a lilypond code block?Something like (pseudo-code: it doesn't
> compile):
> func =
Hello,
I try to re-post my previous question in a more generic way: is it possible to
define local variables in a scheme function and use them in a lilypond code
block?Something like (pseudo-code: it doesn't compile):
func = #(define-music-function (parser location note) (ly:music) ((mypitch