Description
According to the RtMidi Tutorial, RtMidi supports sysex messages with a maximum size of 1024 bytes. All larger messages are discarded.
The Windows Multimedia library MIDI calls used in RtMidi do not make use of streaming functionality. Incoming system exclusive messages read by RtMidiIn are limited to a length as defined by the preprocessor definition RT_SYSEX_BUFFER_SIZE (set in RtMidi.cpp). The default value is 1024. There is no such limit for outgoing sysex messages via RtMidiOut.
A project I am working (https://github.com/MiguelGuthridge/Flapi) on uses sysex messages to communicate with an isolated Python environment, and this limitation on the size of messages makes receiving responses from the environment very unreliable.
Would it be possible to increase this buffer size in python-rtmidi
to allow for larger messages to be exchanged? Making it 64KB or so would be a good compromise between reliability and low memory footprint.