Send tempo from Ableton to Arduino

I'm trying send tempo via MIDI from ableton to arduino.

I'm guessing i need to use in the MIDI library but I can't seem to find much info about how to use it.

Does anyone know how or have any links to info on how i could do this please?


So far I have both the TX and RX pins flashing when I start playback in ableton. However, they are flashing at a much higher rate than the tempo. In fact if i go anything higher than about 50 BPM they begin to flash so fast they just remain constantly on.

Does anybody know how i can convert this frequency into tempo please?

here’s my code: -

#include <MIDI.h>
#include <midi_Defs.h>
#include <midi_Message.h>
#include <midi_Namespace.h>
#include <midi_Settings.h>

void setup() {
void loop() {;