用C ++编写MIDI文件 [英] write a MIDI file in C++

查看:113
本文介绍了用C ++编写MIDI文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在寻找正确的信息方面遇到一些问题,如果有人可以向我指出正确的方向,我将很高兴. 您如何编码midifile?例如如何编写一个播放1秒钟随机声音的代码段. 基本上,我需要完成的工作是将differnet midi旋律表示为某种矢量?我该怎么办..

Hi I Have some problems finding the right information about this and would be glad if someone could point me in the right direction. How do you code a midifile? e.g. how can I write a snippet that plays a random tone for 1 second. Basically what I would need to get done is representing differnet midi melodys as vectors of some sort? How can I do this..

推荐答案

您还可以阅读MIDI文件规范(快速搜索已打开

You could also read up on the MIDI file spec (quick search turned up this) and generate the file yourself. Using a library is probably easier, but the MIDI file format isn't too complicated, especially if you already know how MIDI works (eg. note on/note off messages).

这篇关于用C ++编写MIDI文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆