@sightread/jasmid.ts
v2.1.5
Published
<div align="center">
Downloads
21
Readme
jasmid.ts
Fork of a fork of jasmid MIDI file reader in TypeScript.
Jasmid.ts was originally created by pravdomil, but they have since removed it from their GitHub.
Install
npm i @sightread/jasmid.ts
Example
import { parseMidiFile } from "jasmid.ts"
const midi = parseMidiFile(arrayBuffer)
// midi has type:
// {
// header: { formatType: number; trackCount: number; ticksPerBeat: number };
// tracks: MidiEvent[][];
// }
API
See src/index.ts.