ref: fa7c03ae06c66de31c8b199380cea69d518394d2
parent: 652d72da29e13acde116909f15be5f18c0a20e08
author: Paul Brossier <topas@web.de>
date: Wed Jul 13 02:37:59 EDT 2016
Fixed #62 midi output missing in aubiotrack.
--- a/examples/aubiotrack.c
+++ b/examples/aubiotrack.c
@@ -40,6 +40,18 @@
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 );
}