Fork of jasmid MIDI file reader in TypeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src add subTypeByte for meta events Aug 29, 2018
.babelrc babel Aug 27, 2018
.gitignore git ignore Aug 27, 2018
.prettierrc prettier Aug 27, 2018
README.md fix api Aug 27, 2018
package.json 2.1.0 Aug 29, 2018
tsconfig.json tsconfig Aug 27, 2018

README.md

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.