examples/: only send a last note off when using jack
[aubio.git] / examples / aubionotes.c
index 5b3c44e..36179a9 100644 (file)
@@ -72,7 +72,9 @@ int main(int argc, char **argv) {
   examples_common_process((aubio_process_func_t)process_block, process_print);
 
   // send a last note off
-  send_noteon (lastmidi, 0);
+  if (usejack) {
+    send_noteon (lastmidi, 0);
+  }
 
   del_aubio_notes (notes);