projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1013c5d
)
examples/aubiotrack.c: avoid saturation in when using --mix-input
author
Paul Brossier
<piem@piem.org>
Fri, 10 Mar 2017 19:34:38 +0000
(20:34 +0100)
committer
Paul Brossier
<piem@piem.org>
Fri, 10 Mar 2017 19:34:38 +0000
(20:34 +0100)
examples/aubiotrack.c
patch
|
blob
|
history
diff --git
a/examples/aubiotrack.c
b/examples/aubiotrack.c
index
36267cf
..
ba047d3
100644
(file)
--- a/
examples/aubiotrack.c
+++ b/
examples/aubiotrack.c
@@
-46,10
+46,12
@@
void process_block(fvec_t * ibuf, fvec_t *obuf) {
} else {
aubio_wavetable_stop ( wavetable );
}
- if (mix_input)
+ if (mix_input)
{
aubio_wavetable_do (wavetable, ibuf, obuf);
- else
+ fvec_clamp(obuf, 1.);
+ } else {
aubio_wavetable_do (wavetable, obuf, obuf);
+ }
}
void process_print (void) {