Thanks for the quick reply, @martin !
A quick follow up if I may:
I have my program change fader set to this:
Does it matter what the parameter number is?
Also, the knob selects all the way up to preset 128, but it only goes down to preset 2! I can’t get it to go to preset 1 unless I change the type to ‘Program change’!
Here’s my LUA function…
function bankAChangePreset (valueObject, value)
if value==0 then return end
midi.sendControlChange (PORT_1, 1, 0, 87)
midi.sendControlChange (PORT_1, 1, 32, 92)
midi.sendProgramChange (PORT_1, 1, value)
Edit: Confirmed. If I set the type to Virtual, I can’t select preset 1. If I change it to Program change, it’s 100% reliable but looks like it’s sending 2 x program change messages (one from the control and another from my LUA function).
Edit 2: I tried making it
value - 1 in my LUA function, which kind of works, but it still gets stuck on preset 2 about 50% of the time (and I also have to change the MAX MIDI value to 128).