Write MIDI file in C ++

Hi, I have some problems finding the right information about this, and I would be happy if someone could point me in the right direction. How do you encode midi-fi? for example, how can I write a fragment that reproduces a random tone for 1 second. Basically what I need to do is represent differnet midi melodys as some kind of vectors? How can i do this.

+3
source share
1 answer

You can also read the MIDI file specification (a quick search was included with this ) and generate the file yourself. Using the library is probably simpler, but the MIDI file format is not too complicated, especially if you already know how MIDI works (for example, a note on a message / note).

+9
source

Source: https://habr.com/ru/post/1748126/


All Articles