diff options
author | Robin Gareus <robin@gareus.org> | 2015-07-20 16:18:34 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-07-20 16:18:34 +0200 |
commit | 5e5e56f58949fb4db81fd67a916fa8008b74bc4c (patch) | |
tree | b0d40468f5e7c78474ed98d7d80ef88b58ee7523 /libs/ardour | |
parent | 3f4acaef80192fb8c79e16baa6a898c21b72e3f3 (diff) |
use power of 2 log-scale for parameters.
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/automation_control.cc | 4 |
1 files 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); } } |