这些高数字是中拍节奏有意义吗?
我正在使用 as3 的 midi 库并接收这些值作为节奏(时间线左侧和节奏右侧)
1712 11424264
3632 11424264
3670 2325000
3708 1417992
假设在 time=0 时 tempo=500000。第一个值高了200倍,为什么太高了?也许我读错了?当我尝试使用该速度计算音符的实时时间时,我得到了很高的值,这可能是不正确的。
I am using midi library for as3 and receive these values as tempo (to the left the timeline and to the right the tempo)
1712 11424264
3632 11424264
3670 2325000
3708 1417992
Assuming that at time=0 the tempo=500000. The first valus is 200 times higher, how come it is too high? Perhaps I am reading it wrong? When I try to calculate the real time of notes using that tempo I get high values, which are probably incorrect.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
节奏不是每分钟节拍的值(例如 120 BPM),我有一种感觉,您期望得到这个值。 MIDI 速度 以每四分音符的微秒为单位。
至于数值高出 200 倍,是的,这可能有点可疑。要么你问了错误的问题(即,你没有收到实际的 MIDI 速度事件,而是其他不是速度改变事件的东西),或者 MIDI 文件真的很疯狂。确认这一点的最佳方法是将它们加载到定序器中并查看那里的事件。
The tempo isn't a value in beats per minute (like 120 BPM), which I have a feeling you are expecting to get. MIDI tempo is given in microseconds per quarter note.
As for the values being 200 times higher, yes, that probably is a bit suspicious. Either you are asking the wrong question (ie, you are not receiving actual MIDI tempo events, but something else which is not a tempo change event), or the MIDI files are really crazy. The best way to confirm that is to simply load them in a sequencer and see the events there.