如何使用 CoreMidi 将 Midi 时间代码转换为实际时间
我正在尝试弄清楚如何从主机读取 MIDI 时间代码。
Midi SysEx 的字节格式如下:
|f0|7f|channel|01|subID|hours|mines|secs|frame|f7|
当我收到 midi 消息时,我得到了这个。通常为10-11字节:
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 等等。
我如何使用 CoreMidi 将其转换为像 0m:00s.000ms 这样的运行格式? 我知道如何对静态变量进行编程,只需要知道如何从 MIDI 时间转换为实际时间。谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在技术上询问如何将 SMPTE 转换为 HMS。您应该查看以下链接:
You are technically asking how to convert SMPTE to HMS. You should check out the following links: