简体   繁体   中英

write a MIDI file in C++

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? eg 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..

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM