From adc47c9c432e386296db329dddd6a8701462ab9b Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 15 Mar 2013 17:49:47 -0500 Subject: [PATCH] examples/aubioonset.c: simplify --- examples/aubioonset.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/aubioonset.c b/examples/aubioonset.c index d4d14e5d..58db1997 100644 --- a/examples/aubioonset.c +++ b/examples/aubioonset.c @@ -60,12 +60,7 @@ process_print (void) return; smpl_t onset_found = fvec_read_sample (onset, 0); if (onset_found) { - if (frames >= 4) { - outmsg ("%f\n", (frames - frames_delay + onset_found) - * overlap_size / (float) samplerate); - } else if (frames < frames_delay) { - outmsg ("%f\n", 0.); - } + outmsg ("%f\n", aubio_onset_get_last_onset_s (o) ); } } -- 2.26.2