|
From: Lasse Kärkkäi. <tr...@us...> - 2011-02-08 17:09:48
|
Module: editor
Branch: master
Commit: 05ae875b9b2fb8e3d71468a8b1f0a704ca5098da
Author: Lasse Karkkainen <tro...@tr...>
Date: Tue Feb 8 18:09:37 2011 +0100
Fixed a regression since missing fundamental processing was implemented.
---
pitch.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pitch.cc b/pitch.cc
index 34b9210..c06d1af 100644
--- a/pitch.cc
+++ b/pitch.cc
@@ -100,8 +100,8 @@ void Analyzer::calcTones() {
// Try to combine combos into tones (collections of harmonics)
Tones tones;
for (Combos::const_iterator it = combos.begin(), itend = combos.end(); it != itend; ++it) {
- Tone tone;
for (int div = 1; div <= 3; ++div) { // Missing fundamental processing
+ Tone tone;
int plausibleHarmonics = 0;
double basefreq = it->freq / div;
if (basefreq < FFT_MINFREQ) break; // Do not try any lower frequencies
|