]> git.sesse.net Git - pitch/commitdiff
Typofix.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 28 Apr 2006 12:06:34 +0000 (12:06 +0000)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 28 Apr 2006 12:06:34 +0000 (12:06 +0000)
pitch.cpp

index 72e956961b1e75a188d0a2083671757aee221aad..8aff1485a1e9e44091263aef52b7195cf12479e2 100644 (file)
--- a/pitch.cpp
+++ b/pitch.cpp
@@ -60,7 +60,7 @@ int main()
                fftw_execute(p);
                find_peak_magnitudes(out, bins, FFT_LENGTH);
                std::pair<double, double> peak = find_peak(bins, FFT_LENGTH);
                fftw_execute(p);
                find_peak_magnitudes(out, bins, FFT_LENGTH);
                std::pair<double, double> peak = find_peak(bins, FFT_LENGTH);
-               if (beak.first > 0.0)
+               if (peak.first > 0.0)
                        peak = adjust_for_overtones(peak, bins, FFT_LENGTH);
 
                if (peak.first < 50.0 || peak.second - log10(FFT_LENGTH) < 0.0) {
                        peak = adjust_for_overtones(peak, bins, FFT_LENGTH);
 
                if (peak.first < 50.0 || peak.second - log10(FFT_LENGTH) < 0.0) {