[chuck-users] MidiIn/MidiMsg expansion

Mario Buoninfante mario.buoninfante at gmail.com
Wed Jan 20 12:12:30 EST 2021


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20210120/1389de0a/attachment.html>


More information about the chuck-users mailing list