summaryrefslogtreecommitdiffstats
path: root/classes/PlatformMPlus.sc
diff options
context:
space:
mode:
Diffstat (limited to 'classes/PlatformMPlus.sc')
-rw-r--r--classes/PlatformMPlus.sc5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/PlatformMPlus.sc b/classes/PlatformMPlus.sc
index fc10aa1..999786d 100644
--- a/classes/PlatformMPlus.sc
+++ b/classes/PlatformMPlus.sc
@@ -1,12 +1,12 @@
PlatformMPlus : MIDIDevice{
*new{
- arg name, uid, inPort, outPort, verbose;
+ arg name, uid, inPort, outPort, verbose, states;
var faderSize = 9,
potiSize = 8,
buttonSize = 48,
jogwheelSize = 1;
- ^super.new(name, uid, inPort, outPort, verbose, faderSize, potiSize, buttonSize, jogwheelSize).init;
+ ^super.new(name, uid, inPort, outPort, verbose, states, faderSize, potiSize, buttonSize, jogwheelSize).init;
}
init{
@@ -21,6 +21,7 @@ PlatformMPlus : MIDIDevice{
cleanup{
super.disconnectPorts();
super.disconnectPassThroughs();
+ states.connected=false;
}
addPassThroughs{