2.1.0 • Published 6 years ago

jasmid.ts v2.1.0

Weekly downloads
14
License
-
Repository
github
Last release
6 years ago

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.