[CM] CM, rt, portmidi osx, linux
Fernando Lopez-Lezcano
nando@ccrma.Stanford.EDU
Sat, 11 Feb 2006 17:00:55 -0800
On Wed, 2006-02-08 at 16:19 +0100, andersvi@extern.uio.no wrote:
> [MUNCH]
> doing:
>
> > (define *pm*
> (portmidi-open :output 11 :latency 0))
>
> > (define (zzz len lb ub wai amp)
> (process repeat len
> output (new midi :time (now)
> :duration .1 :amplitude amp
> :keynum (between lb ub))
> wait wai))
>
> > (rts (list (zzz 50 20 50 .5 .5)) *pm*)
>
> plays nice piano-sounds from fluidsynth, and im able to sprout
> processes in the queue:
>
> (sprout (utsleng 2))
>
> adds further notes to the output while the first is playing.
>
> However,
>
> > (define *pm* (portmidi-open :input 12 :output 11 :latency 0))
>
> > (set-receiver! #'(lambda (mm ms) mm (print ms)) *pm*)
>
> and playing my virtual keyboard here crashes cmucl, and hits an
> error in sbcl.
>
> If someone has this working on a linux machine with portmidi,
> would they be kind enought to post some info about versions of
> lisp/CM/portmidi?
I'm using sbcl 0.9.7 (with thread support) with a cm cvs snapshot dated
2005.12.15 (I think) and receving seems to work. What kind of error are
you getting in sbcl?
-- Fernando