diff options
author | Robin Gareus <robin@gareus.org> | 2015-06-01 21:27:14 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-06-02 01:01:23 +0200 |
commit | dd07428c48bb4df60b9d0c6c3cd524279ab4e524 (patch) | |
tree | 0f1430842bbd01a76d2fb2d9a475bdcff2693646 /libs/ardour/ardour/automation_control.h | |
parent | 42915c19a494d049457df4a473ae436ccdffa847 (diff) |
properly handle integer steps in plugin controls
The integer steps min/max are inclusive.
e.g the integer range -1 to +1 has three possible values (not two).
Diffstat (limited to 'libs/ardour/ardour/automation_control.h')
-rw-r--r-- | libs/ardour/ardour/automation_control.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/ardour/automation_control.h b/libs/ardour/ardour/automation_control.h index e489d701e7..24a9e0de3e 100644 --- a/libs/ardour/ardour/automation_control.h +++ b/libs/ardour/ardour/automation_control.h @@ -89,6 +89,9 @@ public: double normal() const { return _desc.normal; } bool toggled() const { return _desc.toggled; } + double internal_to_interface (double i) const; + double interface_to_internal (double i) const; + const ParameterDescriptor& desc() const { return _desc; } const ARDOUR::Session& session() const { return _session; } |