Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 595 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 595 Bytes

jasmid.ts

Fork of jasmid MIDI file reader in TypeScript

Install

npm i 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.

Donate

By buying a beer.