projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e9e311
)
examples/aubioonset.c: simplify
author
Paul Brossier
<piem@piem.org>
Fri, 15 Mar 2013 22:49:47 +0000
(17:49 -0500)
committer
Paul Brossier
<piem@piem.org>
Fri, 15 Mar 2013 22:49:47 +0000
(17:49 -0500)
examples/aubioonset.c
patch
|
blob
|
history
diff --git
a/examples/aubioonset.c
b/examples/aubioonset.c
index d4d14e5dc7fab2ec2e6b9a95e02090f2ff23ad92..58db199713f47d6d6351ecd937355f66f2b36bbb 100644
(file)
--- 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) );
}
}