Mididin Clocks2

Little-scale has another helpful mini how-to for those of you digging in with blue microcontroller

It is often desirable to synchronise something like a homemade sequencing circuit or a Commodore 64 to MIDI clock signals.

I thought I might share some generic Arduino skeleton code that could be used to synchronise
many different types of things to MIDI clock (and therefore ProTools, Ableton Live etc — any type of host sequencer).

The hexadecimal bytes to look out for are nice and straightforward:

byte midi_start = 0xfa;
byte midi_stop = 0xfc;
byte midi_clock = 0xf8;
byte midi_continue = 0xfb;

How to deal with MIDI signal clocks in Arduino

– In case you’re in need of a schematic for connecting MIDI input to your board, Arduino forum member Kuk provides this excellent hand-drawn rendition using an optocoupler IC:

kuks_midi-in_schem.jpg

works: MIDI-IN: code + schematics