mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 14:16:31 +01:00
use power of 2 log-scale for parameters.
This commit is contained in:
parent
3f4acaef80
commit
5e5e56f589
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue