shithub: aubio

Download patch

ref: 4724f60920c91988ed31ef83d9ab46bb86df1504
parent: a07fdb4424cffba1d6f77f1779e3eec410307042
author: Paul Brossier <piem@piem.org>
date: Tue Oct 30 08:55:30 EDT 2018

[notes] fails if release_drop <= 0

--- a/src/notes/notes.c
+++ b/src/notes/notes.c
@@ -150,7 +150,8 @@
 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;