soundfont
Play soundfonts from a "soundfont url" such as free-midi
Installation
Download 4 extra javascript files:
Description
T.soundfont is a singleton object that caches various soundfont notes, and allows you to play them.
Methods
T.soundfont.emptyCache();
T.soundfont.setUrlTemplate(newUrlTemplate);
T.soundfont.setName(newName);
T.soundfont.setChannel(newChannel);
T.soundfont.setInstrument(newInstrument);
T.soundfont.setLength(newLength);
T.soundfont.setJsonp(newJsonp);
T.soundfont.preload(noteArray);
T.soundfont.play(note, playOnLoad, options);
See Also
Source
https://github.com/mohayonao/timbre.js/blob/master/src/extras/audio-jsonp.js https://github.com/mohayonao/timbre.js/blob/master/src/extras/jsmad.js https://github.com/mohayonao/timbre.js/blob/master/src/extras/mp3_decode.js https://github.com/mohayonao/timbre.js/blob/master/src/extras/soundfont.js