From: Paul Brossier Date: Sun, 11 Dec 2016 15:04:17 +0000 (+0100) Subject: examples/: only send a last note off when using jack X-Git-Tag: 0.4.4~76 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=1186c982db888488e0426adfdc1b2b128c17421d;p=aubio.git examples/: only send a last note off when using jack --- 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);