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

Re: [sc-users] [linux][quarks] VoicerMIDISocket problem



On Nov 30, 2008, at 10:54 PM, krgn wrote:

today I tried VoicerMIDISocket and unfortunately it doesn't work with the code below (taken from the examples). It throws the error I pasted below the codeblock:

MIDIClient.init;

Instead of initializing MIDIClient, try setting the expected number of MIDI devices in MIDIPort. Then, when you create the MIDI socket, all the other MIDI objects will be initialized automatically.

MIDIPort.numPorts = *number of devices*;
MIDIPort.init; // if you *must* initialize manually, but you shouldn't have to

The error means that some object is missing in my hierarchy. In MIDIPort.ports, there should be a key and value for each device's UID (i.e., MIDIClient.sources.collect(_.uid)). If one or more of these is missing, then it won't be able to direct the incoming MIDI message to the right place. Could you check the contents of MIDIPort.ports the next time the problem happens, and make sure MIDIPort.ports.size >= MIDIClient.sources.size?

Also, when I call .gui on the VoicerMIDISocket I get this error. I'm using SwingOSC 0.60.

ERROR: Message 'recursiveResize' not understood.
RECEIVER:
Instance of StartRow {    (091E14F0, gc=68, fmt=00, flg=00, set=01)
  instance variables [1]
    view : nil
}

Whoops, that method is in the osx folder but it shouldn't be. I fixed it in svn just now. Thanks for letting me know!

James


: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman