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
This commit is contained in:
Carl Hetherington 2011-02-15 01:42:48 +00:00
parent 4aaa507472
commit ea11968f95
11 changed files with 105 additions and 107 deletions

View file

@ -45,7 +45,18 @@ class Controllable : public PBD::StatefulDestructible {
Controllable (const std::string& name, Flag f = Flag (0));
virtual ~Controllable() { Destroyed (this); }
/* We express Controllable values in one of three ways:
* 1. `user' --- as presented to the user (e.g. dB, Hz etc.)
* 2. `UI' --- as used in some cases for the internal representation
* of the UI. This may be the same as `user', or may be something
* like the natural log of frequency in order that sliders operate
* in a logarithmic fashion.
* 3. `plugin' --- as passed to a plugin.
*/
/** Set `user' value */
virtual void set_value (double) = 0;
/** @return `user' value */
virtual double get_value (void) const = 0;
PBD::Signal0<void> LearningFinished;