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 db00feb..64597a0 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;
 }