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: 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. James : H. James Harkins .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..: "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman |