Fork of jasmid MIDI file reader in TypeScript
npm i jasmid.ts
import { parseMidiFile } from "jasmid.ts"
const midi = parseMidiFile(arrayBuffer)
// midi has type:
// {
// header: { formatType: number; trackCount: number; ticksPerBeat: number };
// tracks: MidiEvent[][];
// }
See src/index.ts.