diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2020-02-20 11:25:00 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2020-02-20 12:25:51 -0600 |
commit | 4f5076a81ae58d7493c4885ab644b125580927b3 (patch) | |
tree | fdc063894a77533dbb845d8498e896e0bc8086d4 /libs/pbd | |
parent | 43bed39d302b0781736809af3548dced0189cfd7 (diff) |
controllable::{get_set}_interface() are convenience wrappers for funcs that need the Rotary flag set
Diffstat (limited to 'libs/pbd')
-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 c75da3cd31..95e75eb3be 100644 --- a/libs/pbd/pbd/controllable.h +++ b/libs/pbd/pbd/controllable.h @@ -131,8 +131,8 @@ public: } /** 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); } + virtual float get_interface(bool rotary=false) const { return (internal_to_interface(get_value(), rotary)); } + virtual void set_interface (float fraction, bool rotary=false) { fraction = min( max(0.0f, fraction), 1.0f); set_value(interface_to_internal(fraction, rotary), NoGroup); } virtual std::string get_user_string() const { return std::string(); } |