Typofix.
[pitch] / pitch.cpp
index 72e9569..8aff148 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);
-               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) {