Ableton Connection Kit (Arduino M4L patch unresponsive mappings issue)

Onokio's icon

Does anyone have experience with Arduino Uno and could help me modify this M4L device / patch?

The issue is that every time I unplug the Arduino from my computer and plug it back in, the Arduino forgets the mapped parameters (on the back-end), so the UI shows the mappings are still there, but when I Rescan for the device, or unplug+plug the arduino back in, and select the correct device, the mappings are unresponsive! Meaning you have to remap the params every single time, which is tedious / makes the device unreliable for live performance.

I think it has to do with the serial initialization, but I am not entirely sure!

Any help is deeply appreciated! I've created a controller for my partner and want the device to remember the mappings so she doesn't have to re-map all the parameters every single session / live performance. THANKS!

Source Audio's icon

you can not store data into arduino over serial port

using that firmata and amxd.

every time you reconnect USB, arduino resets

and runs setup routines.

what are you doing with arduino ?

Onokio's icon

I am going about this the completely wrong way, or at least using an outdated practice.

For anyone looking in the future, use Control Surface:

https://github.com/tttapa/Control-Surface?tab=readme-ov-file#supported-boards

Bypasses needing to use Max MSP and makes Ableton recognize the Arduino inputs as standard MIDI messages. Loads easier and honestly I feel stupid for not thinking of this already.

Source Audio's icon

that firmata and connection kit allways was wrong practice.

Arduino midi exists since many years without this control surface

and in simpler form.

but it is maybe helpfull for beginners to have it all in one place...

Your board UNO R3, not having native usb,

can only again use serial usb connection or din midi

unless you flash it with some LUFA based firmware.

ESP32 based boards could also serve as BLE midi,

USB midi, joystick (being more flexible on windows then midi with all restrictions)

or then ATmega 32u4 boards for USB midi...