Is there a way to integrate a Lua function into the SysEx Editor when handling a response? Or am I doing something wrong here? The following example didn’t work for me:
deviceId = 1
device = devices.get(deviceId)
devPort = device:getPort()
channel = device:getChannel()
function sysExChannel()
return channel - 1
end
I think there is still a hick-up in the listening mode: if you add a function to a response header, that function is not invoked when using the editor’s listening mode. Hence, a received SysEx is not matched against the response header and thus not parsed.
My way around: during development, you temporarily replace the function in the response header with the hardcoded channel you need, so the parsing works. Once all parsing is done and tested, then you insert the function again, upload the preset in the E1 and test it out directly on the E1.
Awesome, thanks for the hint. I thought you’d surely have an alternative ready.