added raw output cleaning
authorPaul Brossier <piem@altern.org>
Tue, 9 Aug 2005 00:19:30 +0000 (00:19 +0000)
committerPaul Brossier <piem@altern.org>
Tue, 9 Aug 2005 00:19:30 +0000 (00:19 +0000)
src/pitchfcomb.c

index 1e200f8..fccf955 100644 (file)
@@ -119,6 +119,8 @@ 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.;
   return peaks[k].freq;
 }