lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Local scheme variables used inside a Lilypond code block


From: Paolo Prete
Subject: Local scheme variables used inside a Lilypond code block
Date: Thu, 22 Feb 2018 10:49:02 +0000 (UTC)

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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]