What is the structure of the MIDI file?

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.

+23
source share
2 answers

MIDI, , , , , , - :

MIDI MIDI

, NAudio - .NET, MIDI Mark Heath.
, , .

, .NET API MIDI.

+8
+15

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


All Articles