mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 00:19:27 +02:00
Oops, square bracket was incorrect because problem does not occur for 8.2Hz.
This commit is contained in:
parent
c39f9a4b53
commit
91ce40d415
@ -32,7 +32,7 @@ double FreqToMIDInoteNumber(double freq)
|
|||||||
{
|
{
|
||||||
// Make the calculation relative to A440 (A4), note number 69.
|
// Make the calculation relative to A440 (A4), note number 69.
|
||||||
double dCalc = 69.0 + (12.0 * (log(freq / 440.0) / log(2.0)));
|
double dCalc = 69.0 + (12.0 * (log(freq / 440.0) / log(2.0)));
|
||||||
//vvv For freq values in the range (0.0, ~8.2], that calculation
|
//vvv For freq values in the range (0.0, ~8.2), that calculation
|
||||||
// produces negative dCalc, and as close in frequency as they are,
|
// produces negative dCalc, and as close in frequency as they are,
|
||||||
// their modulo 12 results are different.
|
// their modulo 12 results are different.
|
||||||
// Also, not clear that any of those frequencies is a "pitch",
|
// Also, not clear that any of those frequencies is a "pitch",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user