Control Ableton Live Device Parameter with Max

Jared Burkhalter's icon

I'm looking to automate an Ableton Live device parameter using M4L.

For instance, would it be possible to have a Max toggle/bang that initiated an automation (smoothly go from 0-100% over x seconds) of the Dry/Wet of an Ableton Live device?

branton olfert's icon

Hi Jared,

Essentially for this you'd just want to have a mapping parameter. So, your bang would say trigger a line object or function or counter, anything that goes from point a to b over your specified time. Once you have that you can use the below code (taken from one of ableton's max for live devices) and map to whatever param you want. You will just have to adjust the scale input value to fit whatever values your device is outputting.

You can essentially have as many of these in a device as you want so that one movement or trigger in max automates a number of different parameters within ableton.

Parameter Mapper Code

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

Hope this helps!

Jay Lee's icon

Hi Branton, do you recall which m4l device this is taken from? Thanks in advance!

Nate Pepper's icon

The mapper subpatch inside the example given above says the following in a comment:
"This mapper was borrowed from 'MapButton.maxpat' from the M4L LFO device. Thank you to the original developers!"