[CM] Receiving from portmidi

Thomas Lambert thomaslambert@altern.org
Mon, 30 Apr 2007 01:16:57 +0200 (CEST)

Hello common music people,

Here's the big picture : I can't receive any midi events, sending seem to
be working and i'd really appreciate some help.

I'm really looking forward to a working setup, i already read Notes From
The Metalevel and am on the starting block.

I'm using last stable cffi 0.9.2
sbcl 1:
last ubuntu linux feisty fawn (with bash)

I first thought this problem might come from a too old portmidi but i have
now the libportmidi from sources (thanks rick ! -> i also found a cvs
makefile on the cmdist mailing list

Many problems were solved by using cvs rather than stable releases of CM
so now i only use cvs (portmidi interface, cm and rts)

rts and portmidi loads quite well

I'm running in a Terminal to ease the debug.

* (cm-version)
"Common Music 2.10.0"
(With last cvs shouldn't it be 2.11.0 ?)

I try the rts' topic example 3, when evaluating set-receiver! i have the
following error :

debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread"
  set-receiver!: #<portmidi-stream "midi-port.pm" (in:6 out:4)> already

So i uncommented the portmidi-record! code to be able to test the third
example of portmidi topic :

debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread"
  portmidi-record!: receiver already active.

It seems that CM is receiving as soon as the portmidi-open fonction is used.
I checked the code of set-receiver but the problem wasn't obvious to me

Maybe this is all normal but then how do i store received data to a Seq ?