Forums > MaxMSP

USB MIDI device list

April 28, 2012 | 5:05 pm

Hello

I have some USB devices connected to Max 6 on OS X Lion including a Behringer BCF and a couple of M-Audio keyboards.

If I disconnect and re-connect a device, it will stop working. The only way I can get the devices working again without restarting Max is to:
-disconnect device from USB
-send a bang to the midiinfo object
-re-connect the device
-send another bang to the midiinfo object

If I don’t bang the midi info object when the device is disconnected, Max wont receive any MIDI information.

I guess the midiinfo object is refreshing something behind the scenes. Does anybody know of a way to refresh all USB/MIDI devices with just one click? I have tried enabling/disabling the devices in the MIDI settings but this doesn’t work.

– Pasted Max Patch, click to expand. –

Thanks
Simon


April 28, 2012 | 8:41 pm

I cannot even do what you do (OSX Snow Leopard).
I have to restart Max to get a lost port back.


May 1, 2012 | 12:57 pm

Really? Try connecting a bang to the right inlet of midiinfo, disconnect, hit the bang, reconnect, hit the bang. You shouldn’t have to restart max though, with Cubase 6 I can unplug/reconnect devices and they are detected immediately. This is important for me when using the system LIVE just incase something were to happen.

I’m basically trying to make a patch which is as bomb proof as possible and I don’t trust little flimsy USB cables. The latest firewire sockets on the MPB is a problem for me also, even with a good quality cable a wiggle or some power interference can occasionally upset the connection. I want a patch whereby if this happens, it can recover without a software restart.


Viewing 3 posts - 1 through 3 (of 3 total)