I'm looking to build a device, which would have the following capabilities:
- Receive an analog audio input signal, over 1/4" TS connection, consisting of click track audio
- Receive MIDI commands over 5 PIN Din Connection, just for pass through capability
- Generate a MIDI clock signal, based on the BPM frequency of the incoming analog audio click track
- Merge the generated MIDI clock signal into the incoming MIDI commands, and send them both out of a 5 pin MIDI DIN connector
So two 5-pin MIDI DIN connectors, and one 1/4" TS input connector.
For functionality, I'm thinking:
- Send the MIDI "Start" command when a new BPM is detected
- Send MIDI Clock while audio is being detected on the 1/4" input
- Send MIDI "Stop" command when the audio input changes from "present" to "not present"
I'd like it to send a new "Start" command when the BPM changes, so external devices synchronizing to the MIDI clock, will re-sync to the downbeat when moving to the next song with a different BPM.
Since this would be based on click track audio, I don't need it to try and figure out the BPM of a complex musical track. The click track is on/off signals coming in.
I do need it to merge the generated MIDI clock signal into an existing MIDI stream though.
I've done some MIDI arduino work before, but never with MIDI clock generation. I've read some tutorials on generating MIDI clock, but nothing specifically like this.
So my 1st question is what hardware is best for this? An arduino UNO and a MIDI shield? Or is there a more finished product I can buy, which would provide the 3 connection points already assembled, and I just have to write the code for it?
Thanks for any assistance