From fa7c03ae06c66de31c8b199380cea69d518394d2 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 13 Jul 2016 06:37:59 +0200 Subject: [PATCH] Fixed #62 midi output missing in aubiotrack. --- examples/aubiotrack.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/aubiotrack.c b/examples/aubiotrack.c index df97a8b0..37dc05d5 100644 --- a/examples/aubiotrack.c +++ b/examples/aubiotrack.c @@ -40,6 +40,18 @@ void process_block(fvec_t * ibuf, fvec_t *obuf) { fvec_zeros (obuf); if ( is_beat && !is_silence ) { aubio_wavetable_play ( wavetable ); + /* Send tap over midi output */ + /* Is called without jack use so ask for jack use */ + if (usejack) + { + /* Note on midi clock: Midi clock looks like it is more suitable here, + * but it is send 24 times between the detected bpm which is impossible + * to do since we get here only once per peat. + * Therefore midinote is used as a good workaround. + * Reference: + * http://www.blitter.com/~russtopia/MIDI/~jglatt/tech/midispec/clock.htm */ + send_noteon(0, 0); + } } else { aubio_wavetable_stop ( wavetable ); } -- 2.11.0