[CM] Receiving from portmidi
Thomas Lambert
thomaslambert at altern.org
Sun Aug 12 12:18:59 PDT 2007
Hello,
I come back to a buried subject but this problem isn't solved for me yet.
I have other thing to play with in CM so no hurry but to be able to
receive midi events is essential for my project. I'd really appreciate any
help.
I posted 2 times in end of april, beginning of may, but for those who
don't want to browse the archive :
under linux
sbcl
output portmidi works
this is based from the portmidi's help topic :
CM> (define *pm* (portmidi-open :latency 0 :input 1 :output 3))
; No value
CM> (define myseq (new seq))
; No value
CM> (portmidi-record! myseq)
portmidi-record!: receiver already active.
[Condition of type SIMPLE-ERROR]
Restarts:
0: [ABORT-REQUEST] Abort handling SLIME request.
1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread"
{B981B11}>)
Backtrace:
0: (PORTMIDI-RECORD! #<seq {BAC0841}>)
1: (SB-INT:SIMPLE-EVAL-IN-LEXENV (PORTMIDI-RECORD! MYSEQ) #<NULL-LEXENV>)
It's already active (why ?) so i disconnect it :
CM> (portmidi-record! #f)
; No value
CM> (portmidi-record! myseq)
set-receiver!: #<portmidi-stream "midi-port.pm" (in:1 out:3)> does not
support :receive-type :PERIODIC.
[Condition of type SIMPLE-ERROR]
Restarts:
0: [ABORT-REQUEST] Abort handling SLIME request.
1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread"
{B981B11}>)
Backtrace:
0: (SET-RECEIVER! #<CLOSURE (LAMBDA (MM MS)) {BC2365D}>
#<portmidi-stream "midi-port.pm" (in:1 out:3)>)
1: (SB-INT:SIMPLE-EVAL-IN-LEXENV (PORTMIDI-RECORD! MYSEQ) #<NULL-LEXENV>)
Does someone has an idea ?
Thomas
> this sounds like a bug but i need to find a keyboard and test it out.
> im totally booked today, will try to look at it tomorrow. apologies
> for the delay!
> --rick
>
More information about the Cmdist
mailing list