diff options
author | Carl Hetherington <carl@carlh.net> | 2011-02-15 01:42:48 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-02-15 01:42:48 +0000 |
commit | ea11968f95c626fcba3f31423ed9de13c258bcdc (patch) | |
tree | 051d0df74da5196f0c3032cfa7c34d2df46184e5 /libs/ardour/ardour/automation_control.h | |
parent | 4aaa507472ebc7752b32bb4398e694120acd98ee (diff) |
Clean up and hopefully fix handling of logarithmic plugin parameters (fixes #3769).
git-svn-id: svn://localhost/ardour2/branches/3.0@8850 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/automation_control.h')
-rw-r--r-- | libs/ardour/ardour/automation_control.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/libs/ardour/ardour/automation_control.h b/libs/ardour/ardour/automation_control.h index 006e74346f..d786f28ab6 100644 --- a/libs/ardour/ardour/automation_control.h +++ b/libs/ardour/ardour/automation_control.h @@ -74,21 +74,26 @@ public: return ((ARDOUR::AutomationList*)_list.get())->stop_touch(mark, when); } - /** Set the value and do the right thing based on automation state - * (e.g. record if necessary, etc.) - */ - void set_value(double val); - - /** Get the current effective value based on automation state. - */ - double get_value() const; + void set_value (double); + double get_value () const; double lower() const { return parameter().min(); } double upper() const { return parameter().max(); } const ARDOUR::Session& session() const { return _session; } + /** Convert user values to UI values. See pbd/controllable.h */ + virtual double user_to_ui (double val) const { + return val; + } + + /** Convert UI values to user values. See pbd/controllable.h */ + virtual double ui_to_user (double val) const { + return val; + } + protected: + ARDOUR::Session& _session; }; |