How to control Ableton Live's tempo with a MaxMSP integer?

Benson's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I'm looking to ramp Ableton's tempo to different tempos using MaxMSP and Ableton's Midi mapping.

My patch above has a sequence that ramps between 4 integers randomly (100, 125, 140, 175). I want these integers to be converted to act as Ableton's bpm e.g. 100bpm, 125bpm etc

Any help would be extremely helpful, thank you!

Christopher Dobrian's icon

You probably already know: From Max, send MIDI out the virtual port "from Max 1", and in Live's MIDI Preferences turn on remote control for that port. Then choose which MIDI command you want to use, and map that controller to Song Tempo in Live.

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

Now you just need to map the range of MIDI values 0-127 to the range of tempi you will want to use. In your case, if your range of tempi will be from 100 to 175, in Live you could just set the Min tempo mapping value to be 100 and the max tempo mapping value to be 227, then use the MIDI values 0 , 25, 40, and 75 to choose the four tempi you want. In this example, I've arbitrarily chosen MIDI controller 20.

double_UG's icon
Max Patch
Copy patch and select New From Clipboard in Max.
Benson's icon

Thank you both for the answers.

Doubleug, that works in a max4live instrument, but do you have any idea how I can have the same thing working but with Ableton and Max being open simultaneously? Rather than Max being 'inside' Ableton in the form of a max4live instrument

double_UG's icon
Max Patch
Copy patch and select New From Clipboard in Max.