diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-13 21:53:50 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-13 21:53:50 +0000 |
commit | 72642335d13b57ac270f6c4a1cc90cebd9bf6590 (patch) | |
tree | b543cb6fec72f050c21e447dbdf99aef8932b1d9 /libs/surfaces/generic_midi/generic_midi_control_protocol.h | |
parent | 1c2951e0eaff278833c8f90bab20afb7c80175c7 (diff) |
Slightly tweaked patch from royvegard to add optional threshold for catch-up of non motorised controls in generic MIDI surfaces (#4828).
git-svn-id: svn://localhost/ardour2/branches/3.0@12716 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/generic_midi/generic_midi_control_protocol.h')
-rw-r--r-- | libs/surfaces/generic_midi/generic_midi_control_protocol.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/surfaces/generic_midi/generic_midi_control_protocol.h b/libs/surfaces/generic_midi/generic_midi_control_protocol.h index a86808948f..7248c83ba1 100644 --- a/libs/surfaces/generic_midi/generic_midi_control_protocol.h +++ b/libs/surfaces/generic_midi/generic_midi_control_protocol.h @@ -87,6 +87,12 @@ class GenericMidiControlProtocol : public ARDOUR::ControlProtocol { return _motorised; } + void set_threshold (int); + + int threshold () const { + return _threshold; + } + private: MIDI::Port* _input_port; MIDI::Port* _output_port; @@ -136,6 +142,7 @@ class GenericMidiControlProtocol : public ARDOUR::ControlProtocol { values jumping around when things are not in sync. */ bool _motorised; + int _threshold; mutable void *gui; void build_gui (); |