summaryrefslogtreecommitdiffstats
path: root/src/controllers/softtakeover.h
diff options
context:
space:
mode:
authorSean M. Pappalardo <pegasus@renegadetech.com>2015-11-30 00:24:05 -0800
committerSean M. Pappalardo <pegasus@renegadetech.com>2015-12-11 07:38:16 -0800
commite4024b4c2a01e65e3bf2f1d386f5bc71f9d96b6f (patch)
tree30ed29e50a7787fbdcb2d1ab0fdfc79d70ee81a5 /src/controllers/softtakeover.h
parent27855556b0090bba61c412c8cdd2f29b50f18b24 (diff)
Cherry-picked commit from st_fix to fix my mess
Diffstat (limited to 'src/controllers/softtakeover.h')
-rw-r--r--src/controllers/softtakeover.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/controllers/softtakeover.h b/src/controllers/softtakeover.h
index f432517809..db5bdbb34a 100644
--- a/src/controllers/softtakeover.h
+++ b/src/controllers/softtakeover.h
@@ -13,13 +13,11 @@
class ControlObject;
-// 3/128 units away from the current is enough to catch fast non-sequential moves
-// but not cause an audibly noticeable jump.
-
-
class SoftTakeover {
public:
- static const double kDefaultTakeoverThreshold;
+ // 3/128 units away from the current is enough to catch fast non-sequential moves
+ // but not cause an audibly noticeable jump.
+ static const double kDefaultTakeoverThreshold = 3.0 / 128;
SoftTakeover();
bool ignore(ControlObject* control, double newParameter);
@@ -58,6 +56,8 @@ class SoftTakeoverCtrl {
void disable(ControlObject* control);
// Check to see if the new value for the Control should be ignored
bool ignore(ControlObject* control, double newMidiParameter);
+ // Ignore the next supplied parameter
+ void ignoreNext(ControlObject* control);
private:
QHash<ControlObject*, SoftTakeover*> m_softTakeoverHash;