mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-22 00:35:48 +01:00
bug 172 follow-up: fix for using semitones input not working
This commit is contained in:
@@ -111,8 +111,7 @@ inline double PercentChangeToRatio(double percentChange)
|
|||||||
|
|
||||||
inline double HalfStepsToPercentChange(double halfSteps)
|
inline double HalfStepsToPercentChange(double halfSteps)
|
||||||
{
|
{
|
||||||
//mchinen hack: invert the ratio so it works with the sbsms bug.
|
return 100.0 * (pow(2.0,halfSteps/12.0) - 1.0);
|
||||||
return 1.0/(100.0 * (pow(2.0,halfSteps/12.0) - 1.0));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline double PercentChangeToHalfSteps(double percentChange)
|
inline double PercentChangeToHalfSteps(double percentChange)
|
||||||
|
|||||||
Reference in New Issue
Block a user