1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 07:59:27 +02:00

Oops, square bracket was incorrect because problem does not occur for 8.2Hz.

This commit is contained in:
v.audacity 2013-05-30 23:34:49 +00:00
parent c39f9a4b53
commit 91ce40d415

View File

@ -32,7 +32,7 @@ double FreqToMIDInoteNumber(double freq)
{
// Make the calculation relative to A440 (A4), note number 69.
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,
// their modulo 12 results are different.
// Also, not clear that any of those frequencies is a "pitch",