Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在播放之前获取 midi 文件的信息,我可以这样做,但我需要使用文件 bpm 的替代 bpm 来做到这一点。
那么有没有办法设置midi文件的bpm并因此影响它的相应时间事件?
您可以使用此库读取 MIDI 文件,然后过滤掉 Tempo 事件并在需要时应用您自己的事件。听起来您对每个事件的实时(而不是它们的 MIDI 滴答声)感兴趣,所以您仍然需要自己计算。(但我假设你已经这样做了,因为 MIDI 文件不跟踪真实的事件时间。)
http://code.google.com/p/android-midi-lib/