THIS WRITER
Pitch data is not key metadata
The current createMidi function writes note-on and note-off events using MIDI pitch numbers. It also writes one Set Tempo event, a track name, and end-of-track. There is no FF 59 02 key-signature meta-event, key-detection step, or key setting in this tool. The result can contain a C, E, and G without claiming the whole song is in C major.