From 5e5e56f58949fb4db81fd67a916fa8008b74bc4c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 20 Jul 2015 16:18:34 +0200 Subject: [PATCH] use power of 2 log-scale for parameters. --- libs/ardour/automation_control.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc index bfb1046849..26ea53cbd2 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -175,7 +175,7 @@ AutomationControl::internal_to_interface (double val) const if (_desc.logarithmic) { if (val > 0) { - val = pow (val, 1/1.5); + val = pow (val, 1./2.0); } else { val = 0; } @@ -191,7 +191,7 @@ AutomationControl::interface_to_internal (double val) const if (val <= 0) { val = 0; } else { - val = pow (val, 1.5); + val = pow (val, 2.0); } }