From 91ce40d415e8b4de2e26f5507058a42566f45993 Mon Sep 17 00:00:00 2001 From: "v.audacity" Date: Thu, 30 May 2013 23:34:49 +0000 Subject: [PATCH] Oops, square bracket was incorrect because problem does not occur for 8.2Hz. --- src/PitchName.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PitchName.cpp b/src/PitchName.cpp index b647a1a52..e8c954196 100644 --- a/src/PitchName.cpp +++ b/src/PitchName.cpp @@ -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",