Re: Stuck MIDI notes
Re: Stuck MIDI notes
- Subject: Re: Stuck MIDI notes
- From: Herbie Robinson <email@hidden>
- Date: Fri, 1 Nov 2002 01:00:58 -0500
On Thursday, October 31, 2002, at 03:42 PM, Herbie Robinson wrote:
(Unless CoreMIDI rewrites MIDI data to move realtime messages out
of other messages... but that's pretty unlikely. I sure don't
think it did when I wrote my parser more than a year ago.)
Providers of messages (drivers, etc) are required to create packets
with no intermingling.
Is this documented someplace? I haven't seen this requirement before.
The comment for MIDIPacket in MIDIServices.h says "the MIDI messages
in the packet must always be complete, except for system-exclusive",
but that doesn't rule out one-byte realtime messages in the middle
of other messages. To me "complete" means "all the bytes are
present".
I agree that this should be an unlikely case, but I'd rather be
robust when dealing with other people's code, which may not pay
attention to details like this.
You are right, it's only documented indirectly (at least in the old
copy that I have printed out) -- MIDIPacketListAdd is documented as
requiring one to pass complete MIDI messages (except for SysEx).
--
-*****************************************
**
http://www.curbside-recording.com/ **
******************************************
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.