摘要
标准MIDI在电子乐器表演中有着广泛的应用。Lab VIEW是一种强大的图形化的编程语言,采用Lab VIEW中VI的技术来实现标准MIDI文件的制作。根据标准MIDI的格式,设计了6个子VI包括16进制字符添加器、Meta事件添加器、MIDI事件添加器、音轨封装器、头块添加器和MIDI文件写出器。最后采用一个顶层VI来根据曲谱的输入文件,调用子VI,最终实现标准MIDI文件的输出。实验结果表明,用Lab VIEW来制作标准MIDI文件是一种高效又简单的可行方法。
Standard MIDI is widely applied on the electrical instruments. LabVIEW is a powerful and graphic programming language. The technique of VI in LabVIEW is used to compose standard MIDI file. According to standard MIDI format, six subVIs are programed including the hex string adder, Meta event adder, MIDI event adder, track chunk sealer, head chunk adder and MIDI output writer. Then a top level VI calls these subVIs to finally output the MIDI file with the inputs of music score. The experiment results show that it is a feasible, efficient and simple way to compose MIDI file with LabVIEW.
出处
《电声技术》
2016年第2期32-36,68,共6页
Audio Engineering