<div dir="ltr"><div>Hi,</div><div><br></div><div>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.<br><br></div><div>The end result could be something along this line:</div><div><br></div><div>MidiIn min;</div><div>MidiMsg msg;</div><div>SysexMsg sysex;<br></div><div>...</div><div>...</div><div>while (true)</div><div>{<br></div><div>  min =&gt; now;</div><div>  while (min.recv(sysex))</div><div>    do something</div><div>  while (min.recv(msg)</div><div>     do something else</div><div>}</div><div><br></div><div><br></div><div>cheers,</div><div>Mario<br></div><div><br></div></div>