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

#118903
damien
Participant
  • Topics: 15
  • Replies: 62
  • Total: 77

thanks dnldoog,
I’m back for the last stretch in this project.
I tried what you suggested but get an error :

Error message: [string “midiMessageReceived”]:19: attempt to call method ‘getByte’ (a nil value)

My sysex request is going to the unit properly:
To MIDI output port 0 SysEx Ensoniq 7 bytes F0 0F 40 00 00 15 F7

And the message is sent back to ctrlr properly :
From MIDI input port 0 SysEx Ensoniq 334 bytes F0 0F 40 00 00 25 02 00 00 03 04 02 00 05 03 07 02 06 03 03 0A 03 04 02 00 04 0D 06 0F 06 0E 06…

So it’s probably just a syntax error but cannot find out what’s wrong with it.

I did a simple request to display the string in the console and get an error for nil value as well:

midiMessageReceived = function(midiMessage)

local midiMessageRawSize = midiMessage:getSize()

if  midiMessageRawSize == 334  then

console(String(midiMessage:toHexString(1)))
end

end

It’s probably coming from the very top of the script.

Any idea about what’s wrong with it? the stripped down version should give at least the sysex message in the console?

Thanks a lot!

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