Re: Questions about receiving SysEx, compared to old OMS way
Re: Questions about receiving SysEx, compared to old OMS way
- Subject: Re: Questions about receiving SysEx, compared to old OMS way
- From: Stephen Kay <email@hidden>
- Date: Sun, 23 Apr 2006 23:16:19 -0400
on 4/23/06 2:42 PM, Kurt Revis at email@hidden wrote:
> But, assuming that all works, all you have to do to receive sysex is
> 1) When you see a packet that starts with 0xF0, start accumulating
> sysex data.
> 2) Look at the first byte of each subsequent packet.
> == 0xF7: You're done with the sysex message.
>> = 0x80: It's a MIDI message, ignore the whole packet.
> Otherwise, you've got more sysex data, keep accumulating it (and
> look for an 0xF7 to end).
That's what I arrived at, it seems to be working.
> The code is here: http://www.snoize.com/MIDIMonitor/Source/
> Specifically, take a look at the SnoizeMIDI project,
> SMMessageParser.* and SMInputStream.*. -[SMMessageParser
> messagesForPacket:] is where all the parsing happens.
Thanks, Kurt! I'll check it out.
Regards
- Stephen
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Stephen Kay
Karma Lab - developers of KARMA
http://www.karma-lab.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
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