From ca30350b00750710f6aba96ba09924531567803d Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 18 Mar 2018 21:02:46 +0100 Subject: classes/MIDIDevice.sc: Adding connected states, if recycling states from before. --- classes/MIDIDevice.sc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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."); } -- cgit v1.2.3-70-g09d2