summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r--gtk2_ardour/automation_controller.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc
index 91009bf487..d6c3d5b824 100644
--- a/gtk2_ardour/automation_controller.cc
+++ b/gtk2_ardour/automation_controller.cc
@@ -76,9 +76,15 @@ AutomationController::create(
const Evoral::Parameter& param,
boost::shared_ptr<AutomationControl> ac)
{
- Gtk::Adjustment* adjustment = manage (new Gtk::Adjustment (param.normal(), param.min(), param.max(),
- (param.max() - param.min())/100.0,
- (param.max() - param.min())/10.0));
+ 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.max() - param.min()) / 100.0,
+ (param.max() - param.min()) / 10.0
+ )
+ );
assert (ac);
assert(ac->parameter() == param);