|
From: rainbyte <rai...@us...> - 2012-07-17 10:42:36
|
Author: Lasse Kärkkäinen <tronic+ndrm at trn.iki.fi> Date: Sun Oct 23 15:07:27 2011 +0300 Bigger frequency range because some singers apparently need it --- game/pitch.hh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/game/pitch.hh b/game/pitch.hh index d7ca49e..37c03ca 100644 --- a/game/pitch.hh +++ b/game/pitch.hh @@ -71,7 +71,7 @@ class Analyzer { /** Get a list of all tones detected. **/ tones_t const& getTones() const { return m_tones; } /** Find a tone within the singing range; prefers strong tones around 200-400 Hz. **/ - Tone const* findTone(double minfreq = 70.0, double maxfreq = 700.0) const { + Tone const* findTone(double minfreq = 65.0, double maxfreq = 1000.0) const { if (m_tones.empty()) { m_oldfreq = 0.0; return NULL; } double db = std::max_element(m_tones.begin(), m_tones.end(), Tone::dbCompare)->db; Tone const* best = NULL; |