summaryrefslogtreecommitdiff
path: root/libs/pbd
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-06-21 17:08:59 +0200
committerRobin Gareus <robin@gareus.org>2017-06-21 18:13:46 +0200
commitce059e2d661e4cc46b7e9bfcf1d5caef618d487a (patch)
treedc455e968671f99f92e51d32c9be3e5daba7bd3f /libs/pbd
parent55df5b39bc5ff2fc4efabb78d701e8a9e3d56b47 (diff)
Remove internal_to_user/user_to_internal API
Also GainControl can just use the AutomationControl's implementation of get_user_string()
Diffstat (limited to 'libs/pbd')
-rw-r--r--libs/pbd/pbd/controllable.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/libs/pbd/pbd/controllable.h b/libs/pbd/pbd/controllable.h
index a255bd6284..da50db3b3c 100644
--- a/libs/pbd/pbd/controllable.h
+++ b/libs/pbd/pbd/controllable.h
@@ -114,16 +114,11 @@ class LIBPBD_API Controllable : public PBD::StatefulDestructible {
/** Conversions between `internal', 'interface', and 'user' values */
virtual double internal_to_interface (double i) const {return (i-lower())/(upper() - lower());} //by default, the interface range is just a linear interpolation between lower and upper values
virtual double interface_to_internal (double i) const {return lower() + i*(upper() - lower());}
- virtual double internal_to_user (double i) const {return i;} //by default the internal value is the same as the user value
- virtual double user_to_internal (double i) const {return i;} //by default the internal value is the same as the user value
/** Get and Set `interface' value (typically, fraction of knob travel) */
virtual float get_interface() const { return (internal_to_interface(get_value())); }
virtual void set_interface (float fraction) { fraction = min( max(0.0f, fraction), 1.0f); set_value(interface_to_internal(fraction), NoGroup); }
- /** Get and Set `user' value ( dB or milliseconds, etc. This MIGHT be the same as the internal value, but in a few cases it is not ) */
- virtual float get_user() const { return (internal_to_user(get_value())); }
- virtual void set_user (float user_v) { set_value(user_to_internal(user_v), NoGroup); }
virtual std::string get_user_string() const { return std::string(); }
PBD::Signal0<void> LearningFinished;