diff options
Diffstat (limited to 'src/controllers/softtakeover.h')
-rw-r--r-- | src/controllers/softtakeover.h | 10 |
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; |