Page 1 of 1

payload size

Posted: Thu Nov 13, 2014 9:53 am
by WharfRat
Hi...

I am writing a new plugin (for MIDI devices).

Some of the events will have a payload, which could conceivably be quite large, like many kilobytes.
For instance, MIDI System Exclusive messages can contain audio data samples for instruments, and so on...

Are there any payload limitations that I should be aware of?
And, if there are, could you perhaps suggest some other approaches?

Re: payload size

Posted: Thu Nov 13, 2014 10:54 am
by Pako
I do not know of any restrictions.
I recommend you to try it - of course use a larger data packet with a sufficient margin.

Pako

Re: payload size

Posted: Thu Nov 13, 2014 7:34 pm
by WharfRat
Thanks Pako...

I just realized that it was a stupid question.

MIDI data is transmitted serially, so we only need to deal with it one byte at a time.
But it is nice to know that there is no particular limit to payload sizes.

I should think harder before I open my big mouth...