Re: Stuck MIDI notes
Re: Stuck MIDI notes
- Subject: Re: Stuck MIDI notes
- From: Doug Wyatt <email@hidden>
- Date: Tue, 5 Nov 2002 08:18:02 -0800
On Thursday, Oct 31, 2002, at 04:28 US/Pacific, Laurent Humbert wrote:
How about using the one that comes with the SampleUSBDriver
(MIDIParser.cpp) ?
Please don't, I tried actually using it for the first time recently and
it's buggy; it was an accident that it got included in the SDK. That
said, there will be a new and properly working version in the next
SDK...
On Thursday, Oct 31, 2002, at 04:34 US/Pacific, Philippe Wicker wrote:
Have a look in XFramework/Model/XMIDIClient.cpp, there is a method
called NextMIDIEvent. This method contains code that allow to walk
through a MIDIPacket event by event. It may not be exactly what you
need (it could be useful to get at return the length of the event),
but it is surely a good starting point.
That one's better :-)
On Thursday, Oct 31, 2002, at 05:18 US/Pacific, Kurt Revis wrote:
but this code doesn't handle that case.
(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.)
The packets you send and receive via CoreMIDI are a strict subset of
what's legal in MIDI:
- messages are always syntactically complete and uninterrupted, except
for sysex which may begin and end in separate packets
- thus, realtime messages will *not* occur inside other messages,
except for sysex
- no running status
On Thursday, Oct 31, 2002, at 15:42 US/Pacific, Herbie Robinson wrote:
There was a bug in the core MIDI routine for building packets; so, in
reality, one could see regular messages come after SysEx message in
the same buffer (but not before or between, AFIK).
Fixed in Jaguar.
I've amended the docs to reflect the requirement that realtime bytes
not occur in the middle of other messages, with the exception of sysex.
Doug
--
Doug Wyatt
work: email@hidden (CoreAudio)
personal: email@hidden
http://www.sonosphere.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.