13
0

use power of 2 log-scale for parameters.

This commit is contained in:
Robin Gareus 2015-07-20 16:18:34 +02:00
parent 3f4acaef80
commit 5e5e56f589

View File

@ -175,7 +175,7 @@ AutomationControl::internal_to_interface (double val) const
if (_desc.logarithmic) { if (_desc.logarithmic) {
if (val > 0) { if (val > 0) {
val = pow (val, 1/1.5); val = pow (val, 1./2.0);
} else { } else {
val = 0; val = 0;
} }
@ -191,7 +191,7 @@ AutomationControl::interface_to_internal (double val) const
if (val <= 0) { if (val <= 0) {
val = 0; val = 0;
} else { } else {
val = pow (val, 1.5); val = pow (val, 2.0);
} }
} }