Re: Raw Midi Time Code
Re: Raw Midi Time Code
- Subject: Re: Raw Midi Time Code
- From: Mark Coniglio <email@hidden>
- Date: Fri, 27 Feb 2004 10:23:44 -0500
Well, actually the messages I'm talking about are the MTC Full
Message (0xF0 cc 0x01 0x01 hr mm ss fr 0xF7) and the Quarter Frame
Message (0xF1 ...). But, the main point is the fact that CoreMidi has
no facility for decoding either MIDI Click (the stuff you listed) or
Midi Time Code (the stuff I mentioned).
OK -- so I should be able to get the raw bytes and figure it out.
Best,
Mark
CoreMIDI does not have any tools for decoding MIDI time code, but
luckily it is not that hard to do. Assuming you can setup the
plumbing needed to get at the incoming MIDIPackets, all you need to
do is watch for the following status bytes...
FA - start
FB - continue (start the clock from the last position)
FC - stop
F8 - tick (this happens 24 times per quarter note)
There is also F2, which is "song position pointer". It will be
followed by two data bytes that are combined to give the current
song position in 1/16 notes. I don't think song position pointer is
strictly part of the MIDI Time Code though.
--
Read about Troika Ranch in the March Apple Hot News:
http://www.apple.com/hotnews/articles/2003/03/troikaranch/
=====================================================================
Mark Coniglio, Artistic Co-Director | email@hidden
Troika Ranch Dance Theater |
http://www.troikaranch.org
=====================================================================
_______________________________________________
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.