Mercurial > hg > cepstral-pitchtracker
diff CepstrumPitchTracker.cpp @ 27:e358f133e670
Adapt for the fact that Vamp::FFT inverse is scaled
author | Chris Cannam |
---|---|
date | Fri, 13 Jul 2012 20:58:37 +0100 |
parents | 13568f1ccff0 |
children | 7927e7afbe07 |
line wrap: on
line diff
--- a/CepstrumPitchTracker.cpp Thu Jul 12 12:03:58 2012 +0100 +++ b/CepstrumPitchTracker.cpp Fri Jul 13 20:58:37 2012 +0100 @@ -572,7 +572,7 @@ double confidence = 0.0; if (nextPeakVal != 0.0) { - confidence = (maxval - nextPeakVal) / 100.0; + confidence = (maxval - nextPeakVal) * 10.0; if (magmean < threshold) confidence = 0.0; std::cerr << "magmean = " << magmean << ", confidence = " << confidence << std::endl; }