|
From: Lasse Kärkkäi. <tr...@us...> - 2011-01-20 13:12:45
|
Module: editor
Branch: master
Commit: a983fa83a59fec8ff29bba3ec2af61d8ad30d88d
Author: Lasse Karkkainen <tro...@tr...>
Date: Thu Jan 20 14:12:29 2011 +0100
Remove optimization that b0rks harmonic detection
---
pitch.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pitch.cc b/pitch.cc
index 0cd9e19..4691f02 100644
--- a/pitch.cc
+++ b/pitch.cc
@@ -118,7 +118,7 @@ void Analyzer::calcTones() {
// Strongest first
std::sort(combos.rbegin(), combos.rend());
// Keep only a reasonable amount of strongest frequencies.
- if (combos.size() > 10) combos.resize(10);
+ //if (combos.size() > 10) combos.resize(10);
// Try to combine combos into tones (collections of harmonics)
Tones tones;
for (Combos::const_iterator it = combos.begin(), end = combos.end(); it != end; ++it) {
|