I want to manually create a function that creates a MIDI file according to user requirements, for example.
The user writes 2 patches that contain 8 bars of 4 quarters A4 (Concert A - 440hz) and C4 (each as a separate channel) at a speed of 120, at a speed of 100, an instrumental piano (01) and patch 49 or whatever.
What the MIDI file should look like in the above. My goal is to learn how to create a function that generates MIDI data, and then write everything to a MIDI file.
So, first I have to understand how to create this function or understand the โMIDI file languageโ so that I can write it.
Thanks in advance.
source
share