diff options
-rw-r--r-- | classes/USBMIDIIsm.sc | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/classes/USBMIDIIsm.sc b/classes/USBMIDIIsm.sc index 52e421b..63f3412 100644 --- a/classes/USBMIDIIsm.sc +++ b/classes/USBMIDIIsm.sc @@ -18,7 +18,11 @@ USBMIDIIsm{ discoverDevices{ if(MIDIClient.initialized.not,{ postln("Initializing MIDIClient..."); - MIDIClient.init(verbose: verbose); + { + MIDIClient.init(verbose: verbose); + }.try( + postln("Failed!") + ); },{ if(devices.size > 0, { postln("Resetting list of MIDI input devices."); @@ -44,7 +48,7 @@ USBMIDIIsm{ inEndPoint.device.contains("Announce")).not, { // correlate with output devices MIDIClient.destinations.do({|outEndPoint, outPortNum| - var device, state; + var device; if((inEndPoint.device == outEndPoint.device && inEndPoint.uid == outEndPoint.uid), { // available devices @@ -95,13 +99,6 @@ USBMIDIIsm{ }); } - setStates{ - arg device; - - - } - - listen{ arg listen = true; if(listen, { |