projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c6acbb
)
examples/aubioonset.c: synth only when need be
author
Paul Brossier
<piem@piem.org>
Sat, 28 Dec 2013 23:39:05 +0000
(19:39 -0400)
committer
Paul Brossier
<piem@piem.org>
Sat, 28 Dec 2013 23:39:05 +0000
(19:39 -0400)
examples/aubioonset.c
patch
|
blob
|
history
diff --git
a/examples/aubioonset.c
b/examples/aubioonset.c
index
0a3094c
..
814dea9
100644
(file)
--- a/
examples/aubioonset.c
+++ b/
examples/aubioonset.c
@@
-31,9
+31,10
@@
smpl_t is_onset;
void
process_block(fvec_t *ibuf, fvec_t *obuf) {
- fvec_zeros(obuf);
aubio_onset_do (o, ibuf, onset);
is_onset = fvec_get_sample(onset, 0);
+ if ( !usejack && ! sink_uri ) return;
+ fvec_zeros(obuf);
if ( is_onset ) {
aubio_wavetable_play ( wavetable );
} else {