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
This commit is contained in:
Carl Hetherington 2012-06-13 21:53:50 +00:00
parent 1c2951e0ea
commit 72642335d1
4 changed files with 47 additions and 1 deletions

View file

@ -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 ();