Home › Forums › General › Programming › update panel on dump request using Lua › Re: update panel on dump request using Lua
Ok, so regardless of the fact that the code below works, it’s still giving me a runtime error when I test with the bug icon in ctrlr’s Lua method editor.. what is the cause of the error? Atom this is basically your script from your Demo MIDI panel. That panel also fires a runtime error when tested, FYI.
[code:3tuzo200]
— Check length of incoming midiMessage, if 265 bytes then it’s a sysex dump
midiMessageReceived = function(midiMessage)
s = midiMessage:getSize()
if s == 265 then
out = panel:getModulatorByName("outputLabel")
out:getComponent():setPropertyString ("uiLabelText", midiMessage:toString())
console("received program data")
assignValues(midiMessage)
end
end
[/code:3tuzo200]
Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen