Pin Preset not working

Hi there, I have created a simple preset with Lua to convert incoming CC messages into Midi Note On/Off messages which I use to trigger clips in Ableton.

I have this preset Pinned. I see the tiny icon indicating this in the preset page.

But the moment I change to any other presets, this preset stops working. I can see this from the debug window as it stops printing what it should be printing. It only starts working again when I switch back to this preset.

In Ableton, the same thing, I have the note on/off assignments and they only trigger when I have the preset loaded. The moment I switch, it stops working in the background as I assume it should based on the description of Pin Preset.

Please help, quite urgent for am upcoming work.

Hi, please find a modified preset at processing Pinned MIDI. I have added the parameterMap.onChange() handler to process the incoming MIDI on background. I do understand what you wanted to achieve and I will think about how to adjust the firmware so that it would work.

Let me know if it works for you. There are a few things that could be further improved at later stage.

1 Like

Hi Martin, thanks for fixing this, it works now!

For any Presets I would like to run as Pinned to process midi in the background, I would need to add this - parameterMap.onChange() ?

1 Like

The Electra One is built around of the idea of the central "Parameter Map”, and so using the parameterMap.onChange() should always provide a solution when handling messages from any type or source. Your original idea did not work because the firmware prevents echoing messages to avoid message looping between the controller and the connected device. I think I could resolve that in more elegant way in future firmware updates. If I succeed your original script would work. For now, using the parameterMap.onChange() is the way to go.

1 Like