denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Scheme question


From: Andreas Schneider
Subject: Re: [Denemo-devel] Scheme question
Date: Thu, 13 Nov 2014 22:07:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0

Thank you! Now I can skip the computation of the value and use d-PutMidi
directly with the value I got from d-GetMidi:

(set! midi (d-GetMidi #f))
(d-PutMidi midi)

That makes it much simpler.

Andreas


Am 10.11.2014 um 12:15 schrieb Richard Shann:
> While looking up that procedure ash it occurred to me I should really
> implement the extension to d-PutMidi to take a list.
> I've done this now so
> 
> (let* ((midi (d-GetMidi #f))
>         (command (list-ref midi 0))
>         (note (list-ref midi 1))
>         (velocity (list-ref midi 2)))
>       (disp command note velocity)
>         (d-PutMidi (list  command  note velocity)))
> 
> should do just as well and much simpler.
> 
> Richard




reply via email to

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