Skip to content

A node library for converting back and forth between midi and json.

License

Notifications You must be signed in to change notification settings

mobyvb/midi-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIDI Converter

Installing:

npm install midi-converter

Converting from MIDI to JSON:

var fs = require('fs');
var midiConverter = require('midi-converter');
var midiSong = fs.readFileSync('example.mid', 'binary');
var jsonSong = midiConverter.midiToJson(midiSong);
fs.writeFileSync('example.json', JSON.stringify(jsonSong));

Converting from JSON to MIDI:

var fs = require('fs');
var midiConverter = require('midi-converter');
var jsonSong = require('./example.json');
var midiSong = midiConverter.jsonToMidi(jsonSong);
fs.writeFileSync('example.mid', midiSong, 'binary');

About

A node library for converting back and forth between midi and json.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published