projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
822190c
)
examples/aubiopitch.c: synth only when need be
author
Paul Brossier
<piem@piem.org>
Sat, 28 Dec 2013 23:39:45 +0000
(19:39 -0400)
committer
Paul Brossier
<piem@piem.org>
Sat, 28 Dec 2013 23:39:45 +0000
(19:39 -0400)
examples/aubiopitch.c
patch
|
blob
|
history
diff --git
a/examples/aubiopitch.c
b/examples/aubiopitch.c
index
5c046f9
..
f960b49
100644
(file)
--- a/
examples/aubiopitch.c
+++ b/
examples/aubiopitch.c
@@
-30,12
+30,12
@@
fvec_t *pitch;
void
process_block(fvec_t * ibuf, fvec_t * obuf) {
- fvec_zeros(obuf);
aubio_pitch_do (o, ibuf, pitch);
+ if ( !usejack && ! sink_uri ) return;
+ fvec_zeros(obuf);
smpl_t freq = fvec_get_sample(pitch, 0);
aubio_wavetable_set_amp ( wavetable, aubio_level_lin (ibuf) );
aubio_wavetable_set_freq ( wavetable, freq );
-
if (mix_input)
aubio_wavetable_do (wavetable, ibuf, obuf);
else