java 如何在没有音序器的情况下改变 MIDI 文件的速度?
我需要在播放之前获取 MIDI 文件的信息,这是我可以做到的,但我需要使用文件 bpm 的替代 bpm 来执行此操作。
那么有没有办法设置 MIDI 文件的 bpm 从而影响它相应的时间事件呢?
I need to get the information of a midi file before it is played which I can do, but I need to do this with alternative bpms of the files' bpm.
So is there a way to set the bpm of a midi file and therefore affect it's corresponding time events?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用此库读取 MIDI 文件,然后过滤出 Tempo 事件并根据需要应用您自己的事件。听起来您对每个事件的实时时间(而不是它们的 MIDI 滴答声)感兴趣,因此您仍然需要自己计算。 (但我假设您已经这样做了,因为 MIDI 文件不会跟踪真实事件时间。)
http://code.google.com/p/android-midi-lib/
You can read the MIDI file in with this library and then filter out the Tempo events and apply your own if need be. It sounds like you're interested in the real time of each event (as opposed to their MIDI tick), so you'll still have to calculate that yourself. (But I assume you were doing that already anyways, since MIDI files don't keep track of real event times.)
http://code.google.com/p/android-midi-lib/