From 1186c982db888488e0426adfdc1b2b128c17421d Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 11 Dec 2016 16:04:17 +0100 Subject: [PATCH] examples/: only send a last note off when using jack --- examples/aubionotes.c | 4 +++- examples/aubioonset.c | 4 +++- examples/aubiotrack.c | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/examples/aubionotes.c b/examples/aubionotes.c index 5b3c44ed..36179a92 100644 --- a/examples/aubionotes.c +++ b/examples/aubionotes.c @@ -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); diff --git a/examples/aubioonset.c b/examples/aubioonset.c index bf996a4a..03bab5b7 100644 --- a/examples/aubioonset.c +++ b/examples/aubioonset.c @@ -84,7 +84,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 (miditap_note, 0); + if (usejack) { + send_noteon (miditap_note, 0); + } del_aubio_onset (o); del_aubio_wavetable (wavetable); diff --git a/examples/aubiotrack.c b/examples/aubiotrack.c index 8667b01c..787c3080 100644 --- a/examples/aubiotrack.c +++ b/examples/aubiotrack.c @@ -88,7 +88,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 (miditap_note, 0); + if (usejack) { + send_noteon (miditap_note, 0); + } del_aubio_tempo(tempo); del_aubio_wavetable (wavetable); -- 2.11.0