阅读MIDI文件 [英] Reading MIDI Files
问题描述
什么是读取MIDI文件(按时间顺序)与多音轨的最好方法? (爪哇)
What is the best way to read a MIDI file (chronologically) with multiple tracks? (Java)
请注意:我不想播放MIDI文件,只需读取消息
Note: I don't want to play the MIDI file, just read the messages.
夫妇的想法:
它是安全的假设还有比1/64注缩短免音符事件?或者我应该访问每个轨道,只有移动到下一个剔所有其他蜱轨道之后
Is it safe to assume there are no note events shorter than the 1/64th note? Or should I visit every track and only move to the next tick after all other ticks tracks
- 假设没有MIDI事件超过1/64注短,移动当前位置时钟计数由固定三角洲。
- 每个轨道和进步访问到下一个最早的蜱
推荐答案
JFugue 可以读取MIDI文件和排序按时间顺序的消息。
JFugue can read a MIDI file and sort the messages in chronological order.
结果可以理解为JFugue MusicStrings(例如,C-犀利,第5倍频,全音符=C#5瓦特),或者你可以写自己的ParserListener并将其连接到MidiParser所以你可以输出你的自己的文本。
The results can be read as JFugue MusicStrings (for example, C-sharp, 5th octave, whole note = "C#5w"), or you can write your own ParserListener and attach it to the MidiParser so you can output your own text.
这篇关于阅读MIDI文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!