diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-21 08:09:40 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-21 08:09:40 -0400 |
commit | ea95bef27b6a59f7e9d623d865f96746fa289fad (patch) | |
tree | fd63190db89ac61cc1a508de5ed9dba0132d9bb0 | |
parent | 6e7ca06f635255aa3aecaa7fd03ddaae41002579 (diff) |
variable name change: percent is 0..100, 0..1.0 is a fraction
-rw-r--r-- | libs/pbd/pbd/controllable.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/pbd/pbd/controllable.h b/libs/pbd/pbd/controllable.h index 235c4ce904..2dfe7d8785 100644 --- a/libs/pbd/pbd/controllable.h +++ b/libs/pbd/pbd/controllable.h @@ -73,9 +73,9 @@ class LIBPBD_API Controllable : public PBD::StatefulDestructible { 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, percent of knob travel) */ + /** 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 percent) { percent = min( max(0.0f, percent), 1.0f); set_value(interface_to_internal(percent)); } + virtual void set_interface (float fraction) { fraction = min( max(0.0f, fraction), 1.0f); set_value(interface_to_internal(fraction)); } /** 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())); } |