mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
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:
parent
1c2951e0ea
commit
72642335d1
4 changed files with 47 additions and 1 deletions
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue