Cocell
Cocell

Reputation: 159

How to convert Midi Time Code to actual time using CoreMidi

I'm trying to figure out how to read midi time code from a host.

The Midi SysEx has a byte format like this:
|f0|7f|channel|01|subID|hours|minutes|secs|frame|f7|

When I receive midi message I get this. usually 10-11 bytes:
f0 00 00 66 05 00 11 00 03 f7
f0 00 00 66 05 00 11 01 02 f7
f0 00 00 66 05 00 11 01 05 f7 etc.

How do I convert this into a running format like this 0m:00s.000ms using CoreMidi? I know how to program static variables just need to know how to convert from midi time to actual time. Thanks

Upvotes: 3

Views: 909

Answers (1)

Nik Reiman
Nik Reiman

Reputation: 40380

You are technically asking how to convert SMPTE to HMS. You should check out the following links:

Upvotes: 2

Related Questions