[tests] add run_on_default_source_and_sink helper
[aubio.git] / examples / aubionotes.c
index f74063a..339fdaf 100644 (file)
@@ -21,6 +21,7 @@
 #include "utils.h"
 #define PROG_HAS_PITCH 1
 #define PROG_HAS_ONSET 1
+#define PROG_HAS_NOTES 1
 #define PROG_HAS_SILENCE 1
 #define PROG_HAS_JACK 1
 // TODO add PROG_HAS_OUTPUT
@@ -82,6 +83,12 @@ int main(int argc, char **argv) {
           silence_threshold);
     }
   }
+  if (release_drop != 10.) {
+    if (aubio_notes_set_release_drop (notes, release_drop) != 0) {
+      errmsg ("failed setting notes release drop to %.2f\n",
+          release_drop);
+    }
+  }
 
   examples_common_process((aubio_process_func_t)process_block, process_print);