ref: 1b7f3692323a1b5356d9a8977e7efb0fc96ed3a1
parent: 7858305a8c2dbdfb5c1f3a3ce9b25966cb906b4a
parent: fb7db6bb14bc4fb8e322f2a6522585f41fb91f36
author: Paul Brossier <piem@piem.org>
date: Fri Jul 22 16:42:31 EDT 2016
Merge branch 'topas-rec-aubiotrack_midi_output'
--- 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 );
}