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 (ly:music-property note 'pitch '()))
(myduration (ly:music-property note 'duration '())))
#{ .... $mypitch $myduration ..... #} )
If not, is there a work-around to obtain that?