Re: update panel on dump request using Lua

Home Forums General Programming update panel on dump request using Lua Re: update panel on dump request using Lua

#2935
msepsis
Participant
    • Topics: 219
    • Replies: 732
    • Total: 951
    • ★★★

    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

    Ctrlr