Go Down

Topic: Send tempo from Ableton to Arduino (Read 98 times) previous topic - next topic

liamorourke

Apr 06, 2016, 11:12 am Last Edit: Apr 07, 2016, 08:00 pm by liamorourke
I'm trying send tempo via MIDI from ableton to arduino.

I'm guessing i need to use MIDI.read() 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?

Thanks

liamorourke

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: -

Code: [Select]

#include <MIDI.h>
#include <midi_Defs.h>
#include <midi_Message.h>
#include <midi_Namespace.h>
#include <midi_Settings.h>
MIDI_CREATE_DEFAULT_INSTANCE();

void setup() {
MIDI.begin(1);
}
void loop() {
MIDI.read(1);
}

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy