[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use ^markup in a scheme function?
From: |
Erik Sandberg |
Subject: |
Re: How to use ^markup in a scheme function? |
Date: |
Sun, 17 Dec 2006 13:18:21 +0100 |
User-agent: |
KMail/1.9.5 |
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