Hi,

I suppose one solution could be to have a new dedicate class (ie SysexMsg) with a getSysex() method, and then tweak the various bits that deal with receiving MIDI so that if the incoming msg is a sysex we can use a SysexMsg object instead of a MidiMsg one.

The end result could be something along this line:

MidiIn min;
MidiMsg msg;
SysexMsg sysex;
...
...
while (true)
{
  min => now;
  while (min.recv(sysex))
    do something
  while (min.recv(msg)
     do something else
}


cheers,
Mario