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 1e200f8101db9545ab270d3912a0b719ae0e27a7..fccf955751497a19a0bb26aa5b703bfebfc6f4ce 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;
 }