diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2014-09-18 17:25:11 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2014-09-18 17:25:11 -0500 |
commit | ceff2e3a62f839dc4ca180b46c78ba2ca11a7411 (patch) | |
tree | 6091c1365dfe5d4a178b7a05024e3e6d413ba1d5 /gtk2_ardour/automation_controller.cc | |
parent | 41f13c0109316f8264788f0c11e9dd6b4d2e928c (diff) |
plugin widgets were written to use Internal values, so use that for now
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r-- | gtk2_ardour/automation_controller.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc index 3240e6b81a..fbc5066c43 100644 --- a/gtk2_ardour/automation_controller.cc +++ b/gtk2_ardour/automation_controller.cc @@ -71,9 +71,9 @@ AutomationController::create( { Gtk::Adjustment* adjustment = manage ( new Gtk::Adjustment ( - ac->internal_to_interface (param.normal()), - ac->internal_to_interface (param.min()), - ac->internal_to_interface (param.max()), + param.normal(), + param.min(), + param.max(), (param.max() - param.min()) / 100.0, (param.max() - param.min()) / 10.0 ) @@ -94,7 +94,7 @@ AutomationController::get_label (double& xpos) void AutomationController::display_effective_value() { - double const interface_value = _controllable->internal_to_interface (_controllable->get_value()); + double const interface_value = _controllable->get_value(); if (_adjustment->get_value () != interface_value) { _ignore_change = true; @@ -107,7 +107,7 @@ void AutomationController::value_adjusted () { if (!_ignore_change) { - _controllable->set_value (_controllable->interface_to_internal (_adjustment->get_value())); + _controllable->set_value (_adjustment->get_value()); } } |