projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a07fdb4
)
[notes] fails if release_drop <= 0
author
Paul Brossier
<piem@piem.org>
Tue, 30 Oct 2018 11:55:30 +0000
(12:55 +0100)
committer
Paul Brossier
<piem@piem.org>
Tue, 30 Oct 2018 11:55:30 +0000
(12:55 +0100)
src/notes/notes.c
patch
|
blob
|
history
diff --git
a/src/notes/notes.c
b/src/notes/notes.c
index
cc450e8
..
a3cc741
100644
(file)
--- a/
src/notes/notes.c
+++ b/
src/notes/notes.c
@@
-150,7
+150,8
@@
smpl_t aubio_notes_get_minioi_ms(const aubio_notes_t *o)
uint_t aubio_notes_set_release_drop(aubio_notes_t *o, smpl_t release_drop_level)
{
uint_t err = AUBIO_OK;
- if (release_drop_level < 0.) {
+ if (release_drop_level <= 0.) {
+ AUBIO_ERR("notes: release_drop should be >= 0, got %f\n", release_drop_level);
err = AUBIO_FAIL;
} else {
o->release_drop_level = release_drop_level;