summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2018-03-18 21:02:46 +0100
committerDavid Runge <dave@sleepmap.de>2018-03-18 21:02:46 +0100
commitca30350b00750710f6aba96ba09924531567803d (patch)
tree491f2ec6d199af5dc5214def5feb992ce23ebac6
parentda196dd8d8ea78ba5bb2f1dc73cdece21d51dfbd (diff)
downloadusbmidiism-ca30350b00750710f6aba96ba09924531567803d.tar.gz
usbmidiism-ca30350b00750710f6aba96ba09924531567803d.tar.bz2
usbmidiism-ca30350b00750710f6aba96ba09924531567803d.tar.xz
usbmidiism-ca30350b00750710f6aba96ba09924531567803d.zip
classes/MIDIDevice.sc: Adding connected states, if recycling states from before.
-rw-r--r--classes/MIDIDevice.sc4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/MIDIDevice.sc b/classes/MIDIDevice.sc
index f35be83..f9e9372 100644
--- a/classes/MIDIDevice.sc
+++ b/classes/MIDIDevice.sc
@@ -51,7 +51,9 @@ MIDIDevice{
jogwheels = Array.newClear(indexedSize: jogwheelSize);
touchpads = Array.newClear(indexedSize: touchpadSize);
passThroughs = Dictionary();
-// states = MIDIState();
+ if(states.data.size>0, {
+ this.connectStates();
+ });
this.connectPorts();
postln("Device '"++name++"' initialized.");
}