Re: MIDI packet processing
Re: MIDI packet processing
- Subject: Re: MIDI packet processing
- From: Kurt Revis <email@hidden>
- Date: Tue, 14 Sep 2004 10:43:52 -0700
On Sep 14, 2004, at 8:53 AM, Scott Ruda wrote:
It seems a shame if it's true that realtime messages can be embedded
within a single sysex packet. That means you would have to scan each
packet's bytes and copy byte by byte instead of doing a block move.
Odds are that you're not going to get very much data in each packet
anyway, so scanning through all the bytes won't kill you. Keep in mind
that it's 2004, so compared to any computer you're going to be running
on, the MIDI data rate is insanely slow and sysex messages aren't very
big anymore. :)
When I wrote my MIDI parser, I wasn't aware that realtime messages were
prohibited in the middle of other normal messages, so I made the parser
handle that case as well. It's not really much more difficult.
I just open-sourced my MIDI Monitor application, so you are welcome to
use the code:
http://www.snoize.com/MIDIMonitor/Source/
The parser is in Frameworks/SnoizeMIDI/SMMessageParser.m.
--
Kurt Revis
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden