parameterMap.onChange not firing on physical knob rotation (Mini, CC Relative)

Hi,

I’m trying to detect physical knob turns in Lua on the Electra One Mini (firmware 4.1.4) to dynamically reroute MIDI output per knob.

parameterMap.onChange does not fire when I physically turn a knob configured as CC Relative (Two’s Complement). It only fires on incoming MIDI or programmatic changes. Touch events (onPotTouchChange) work fine.

I also tried value function callbacks (“function” in preset JSON) and setPotCallback() — neither fires on physical rotation for CC Relative controls.

The documentation implies onChange should fire regardless of source (it has an origin parameter). Is this expected behavior or a bug? And is there any other way to run Lua code when a knob is physically turned?

Setup: Electra One Mini, firmware 4.1.4, knobs as CC Relative (Two’s Complement), Port 1, Channel 1.

thanks in advance :slight_smile:

Sorry, probably the wrong board? Feel free to put the thread somewhere else.

I have to think what to do about this. The parameterMap and everything around it is based on the fact that the controller maintains the “value”. The relative controls are somewhat special in that regard because Electra is forced not to track it to be truly relative…

Hi Martin,

thanks for getting back. I’m sure you have bigger fish to fry. I will try to live with Bitwig takeover mode / flexi relative scalling. If there will be a solution to this I’m sure we’ll read about it in future changelogs.

cheers :slight_smile: