Re: LAU midiMassageReceived cause crash

Home Forums General Programming LAU midiMassageReceived cause crash Re: LAU midiMassageReceived cause crash

#3959
atom
Keymaster
    • Topics: 159
    • Replies: 2945
    • Total: 3104
    • ★★★★★

    No no, edit the method, and replace it with:
    [code:asyo8m0r]
    midiMessageReceived = function(midiMessage)
    data = midiMessage:getLuaData()
    console (string.format ("midiIncomming size: %d", data:getSize()))
    console ("HEX: "..data:toHexString(1))
    for i=0,data:getSize()-1 do
    console (string.format("BYTE[%d]: %d/%x", i, data:getByte(i), data:getByte(i)))
    end
    end
    [/code:asyo8m0r]

    then try to generate some midi data to the panel and watch the LUA console for any events.

    Ctrlr