On Saturday 16 December 2006 23:40, Frédéric Chiasson wrote:
> Thanks for the later answer, that is what i'm using and it works.
>
> For the Lilypond code with the Scheme code, I just want to execute the
> Lilypond code, so I should write :
>
> (define-music-function (variables)
> (let ((music #{ LilyPond code #}))
>   ( (make-music music)
>      other Scheme code )))
> ?
no:
- music is already a music object, so no need for make-music.
- let returns the value of the last expression, read any scheme manual for 
details.
So if you want to do side-effects, you'll want do do something like:
(define-music-function (variables)
 (let ((music #{ LilyPond code #}))
      (other Scheme code) 
      music))


-- 
Erik


_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to