diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/USBMIDIIsm.sc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/classes/USBMIDIIsm.sc b/classes/USBMIDIIsm.sc index 63f3412..b5b547c 100644 --- a/classes/USBMIDIIsm.sc +++ b/classes/USBMIDIIsm.sc @@ -1,27 +1,24 @@ USBMIDIIsm{ - var <devices, <stateManager, verbose; + var <>verbose, <devices, <stateManager; *new{ - arg setVerbose=false; - ^super.new.init(setVerbose); + arg verbose=false; + ^super.newCopyArgs(verbose).init(); } init{ - arg setVerbose; devices = Array(); - stateManager = MIDIStateManager(); - verbose = setVerbose; + stateManager = MIDIStateManager(verbose); this.discoverDevices(); } discoverDevices{ if(MIDIClient.initialized.not,{ - postln("Initializing MIDIClient..."); { MIDIClient.init(verbose: verbose); }.try( - postln("Failed!") + postln("Initializing MIDIClient...") ); },{ if(devices.size > 0, { |