projects
/
aubio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
examples/aubio{trac,onset}.c: add silence option
[aubio.git]
/
examples
/
aubionotes.c
diff --git
a/examples/aubionotes.c
b/examples/aubionotes.c
index
dc57ce8
..
fd8278e
100644
(file)
--- a/
examples/aubionotes.c
+++ b/
examples/aubionotes.c
@@
-57,7
+57,7
@@
process_block(fvec_t *ibuf, fvec_t *obuf) {
}
/* curlevel is negatif or 1 if silence */
- smpl_t curlevel = aubio_level_detection(ibuf, silence);
+ smpl_t curlevel = aubio_level_detection(ibuf, silence
_threshold
);
if (fvec_read_sample(onset, 0)) {
/* test for silence */
if (curlevel == 1.) {