diff Source/Mappings/Control/TouchkeyControlMappingFactory.cpp @ 52:18af05164894

Bug fix in control mapping.
author Andrew McPherson <andrewm@eecs.qmul.ac.uk>
date Tue, 12 May 2015 18:19:05 +0100
parents 90ce403d0dc5
children
line wrap: on
line diff
--- a/Source/Mappings/Control/TouchkeyControlMappingFactory.cpp	Wed Apr 22 21:37:51 2015 +0100
+++ b/Source/Mappings/Control/TouchkeyControlMappingFactory.cpp	Tue May 12 18:19:05 2015 +0100
@@ -70,8 +70,8 @@
 }
 
 void TouchkeyControlMappingFactory::setController(int controller) {
-    if(midiControllerNumber_ < 1 ||
-       midiControllerNumber_ >= MidiKeyboardSegment::kControlMax)
+    if(controller < 1 ||
+       controller >= MidiKeyboardSegment::kControlMax)
         return;
     
     // Before changing the controller, check if we were going to or from the pitch wheel.