ref: adc47c9c432e386296db329dddd6a8701462ab9b
parent: 7e9e31189b9896cc300b949e0ca575d9e5232909
author: Paul Brossier <piem@piem.org>
date: Fri Mar 15 13:49:47 EDT 2013
examples/aubioonset.c: simplify
--- a/examples/aubioonset.c
+++ b/examples/aubioonset.c
@@ -60,12 +60,7 @@
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) );
}
}