lilypond-devel
[Top][All Lists]
Advanced

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

Re: little scheme problem (convert ly -> xml)


From: Jan Nieuwenhuizen
Subject: Re: little scheme problem (convert ly -> xml)
Date: Thu, 28 Jul 2011 10:32:41 +0200
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.3 (cygwin)

bigcab writes:

> (define function-value-list
>         (('duration      . ((lambda(x) (ly:duration-log x))))

What are you trying to achieve by doing (lambda (x) (foo x))?

>         ('step           . ((lambda(x) (ly:pitch-notename x))))
>         ('test           . ((lambda(x) (begin (display "salut :")
> (display x) (display ".\n")))))
>         ('octave         . ((lambda(x) (ly:pitch-octave x))))))

You probably want something like

   (define function-value-list
      `((duration . (,ly:duration-log))
        (step . (,ly:pitch-notename))
        (test . (,lambda (x) (begin (display "salut: ") ...)))
        ...))


Jan.

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ®  http://AvatarAcademy.nl



reply via email to

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