Home › Forums › General › Programming › Storing received sysex dump as memoryblock then process › Reply To: Storing received sysex dump as memoryblock then process
June 26, 2020 at 9:53 am
#118909
Hi Damien,
That should be:
midiMessageReceived = function(midiMessage)
console(String(midiMessage:getData():toHexString(1)))
end
I’m surprised adding the additional getData() method didn’t fix the problem on line 19:
Error message: [string “midiMessageReceived”]:19: attempt to call method ‘getByte’ (a nil value)
Incidentally you can do midiMessage:getSize() just as in a normal MemoryBlock, but to access data on an incoming MIDI message, you need getData()