Home › Forums › General › Programming › LAU midiMassageReceived cause crash › Re: LAU midiMassageReceived cause crash
February 27, 2012 at 11:39 pm
#3959
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.