Re: Local scheme variables used inside a Lilypond code block

2018-02-22 Thread David Kastrup
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

Re: Local scheme variables used inside a Lilypond code block

2018-02-22 Thread Paolo Prete
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

Re: Local scheme variables used inside a Lilypond code block

2018-02-22 Thread David Kastrup
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 =

Local scheme variables used inside a Lilypond code block

2018-02-22 Thread Paolo Prete
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