Manage Tempo with midi event or/and with the real motor speed.

benjamin vyger's icon

Hi,
I make turning 5 motors with an Arduino.
I send a 5 different data from Arduino (0,1,2,3,4) each time a motor make exactly one round.
With those datas, I trig 5 different midi note. It works fine.
Now, I would like to control the tempo of Ableton Live with a patch that could calculate the real speed of my first motor by multiplying time between to midi event, or with the data in BPM that I can direct send from Arduino .
Can anyone tell me a way to manage this?
Thanks

manageTempo.maxpat
Max Patch

Source Audio's icon

I guess that sending tempo from Arduino
would be more tight, then measuring
time between motor reports.
Calc is simple: 60000 / motor cycle in ms
gives You the BPM.
You would send it as float to be exact.

benjamin vyger's icon

Hi,

I have found this patch in a former chat on this forum.
When you select Master in Track, Mixer in Device you can choose Song tempo in Parameter.
Then when you click on the button on the top-left and you set with one of the two number (integer or float between 0 to 1) you will see Song tempo changing between 20 to 999.
Although the tempo change, it doesn't actually change!

I have Ableton Live 10.0.1 and Max 8.0.0

BPM.amxd
amxd 26.47 KB

Later, when it will work, I will modulate this number with the real speed of one of my motor which already set in BPM ;)


Thanks for helping!

Source Audio's icon

I don't use Live at all, but from time I helped someone with
few things, I remember this as Tempo control :

Max Patch
Copy patch and select New From Clipboard in Max.