payload size

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

payload size

Post by WharfRat » Thu Nov 13, 2014 9:53 am

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?
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)

User avatar
Pako
Plugin Developer
Posts: 2290
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: payload size

Post by Pako » Thu Nov 13, 2014 10:54 am

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

User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Re: payload size

Post by WharfRat » Thu Nov 13, 2014 7:34 pm

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...
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)

Post Reply