fcomb doesn't output anything correct above 5000Hz
authorPaul Brossier <piem@altern.org>
Mon, 22 Aug 2005 19:33:30 +0000 (19:33 +0000)
committerPaul Brossier <piem@altern.org>
Mon, 22 Aug 2005 19:33:30 +0000 (19:33 +0000)
src/pitchfcomb.c

index db00febb85a490f64e259dcddc827488d8fec05f..64597a0fe7fd2a5d98a68e4e5e7b457af8e50ad1 100644 (file)
@@ -120,7 +120,7 @@ smpl_t aubio_pitchfcomb_detect (aubio_pitchfcomb_t * p, fvec_t * input)
     }
   }
   /* quick hack to clean output a bit */
-  if (peaks[k].freq > 10000) return 0.;
+  if (peaks[k].freq > 5000.) return 0.;
   return peaks[k].freq;
 }