ref: fb7db6bb14bc4fb8e322f2a6522585f41fb91f36
parent: 7858305a8c2dbdfb5c1f3a3ce9b25966cb906b4a
parent: fa7c03ae06c66de31c8b199380cea69d518394d2
author: Paul Brossier <piem@piem.org>
date: Fri Jul 22 16:36:13 EDT 2016
Merge branch 'aubiotrack_midi_output' of https://github.com/topas-rec/aubio into 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 );
}