Reply To: Storing received sysex dump as memoryblock then process

Home Forums General Programming Storing received sysex dump as memoryblock then process Reply To: Storing received sysex dump as memoryblock then process

#118909
dnaldoog
Participant
  • Topics: 4
  • Replies: 480
  • Total: 484
  • ★★

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()

Do NOT follow this link or you will be banned from the site!