UNMAINTAINED. A MIDI file reader and synthesiser in Javascript
OTHER License
see jasmid.ts fork: https://github.com/pravdomil/jasmid.ts
jasmid - A Javascript MIDI file reader and synthesiser
Originally presented at BarCamp London 8, 13-14 November 2010
Instructions: Open index.html in browser. Turn up volume. Click on link.
Sound output is via one of the following mechanisms, according to what your browser supports:
The code: stream.js - helper library for reading a string as a stream of typed data midifile.js - parses the MIDI file format into a header and a list of tracks, each consisting of a list of event objects replayer.js - steps over the data structure generated by midifile.js and calls the appropriate operations on the synthesiser synth.js - audio synthesiser; generates waveforms according to tweakable parameters audio.js - passes the generated waveform to either the Audio Data API or the Flash fallback widget (da.swf)
Limitations:
Matt Westcott [email protected] - @gasmanic - http://matt.west.co.tt/