Skip to content

NHQ/midi-file-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

midi-file-parser

npm install midi-file-parser

The midi file parsing parts of jasmid

Special thanks to the authors.

usage

Its just a function that takes a binary string.

var midiFileParser = require('midi-file-parser');

var file = require('fs').readFileSync('rachnananov.mid', 'binary')

var midi = midiFileParser(file);

It returns an object with header and track info.

You can use it with browserify and brfs:

var midiFileParser = require('midi-file-parser');

var fs = require('fs')

var file = fs.readFileSync('rachnananov.mid', 'base46')

file = window.atob(file)

var midi = midiFileParser(file);

About

parse midi (.mid) files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published