From 8d84c0b74f32177bb3256312716ddcf58e0ff098 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 9 Aug 2005 00:19:30 +0000 Subject: [PATCH] added raw output cleaning --- src/pitchfcomb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pitchfcomb.c b/src/pitchfcomb.c index 1e200f81..fccf9557 100644 --- a/src/pitchfcomb.c +++ b/src/pitchfcomb.c @@ -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; } -- 2.26.2