Hey there! I'm currently setting up my controllers, the EF44 and EN16. My goal is to create a setup where holding down a button on the EF44 while pressing another on the EN16 resets a row of encoders and a fader to specific values. This would allow me to reset devices quickly with just one click.
So far, I've managed to get different values on an EN16 button when holding down an encoder on the EF44. I've also successfully set encoders and LEDs to specific values, but the catch is, it only works when I rotate the encoder a bit. It doesn't trigger when I just press the button.
Here's what I've tried so far:
EF44 Button Setup:
press ->
immediate_send(nil, nil, 'ef44_button_pressed = true')
release ->
immediate_send(nil, nil, 'ef44_button_pressed = false')
EN16 Init:
ef44_button_pressed = ef44_button_pressed or false
EN16 Button Configuration:
if ef44_button_pressed
then
led_value(num, 2, 255)
element[14]:encoder_value(127)
led_value(num, 2, 0)
element[6]:encoder_value(0)
led_value(num, 2, 0)
element[2]:encoder_value(0)
immediate_send(0, 2, 'element[6]:potmeter_value(0)')
else
self:encoder_value(0)
led_value(num, 2, 0)
The fader isn't changing its value as expected.
Encoders only reset when I rotate them a bit, not on button press.
I'm stuck here and could really use some insight. If anyone has a similar setup or knows what I might be missing, I'd love to hear your thoughts!
