keithwhor / audiosynth

JS Dynamic Audio Synth
MIT License
600 stars 161 forks source link

Mimic the MIDIOutput interface #1

Closed nfroidure closed 10 years ago

nfroidure commented 10 years ago

First of all : Great work. This a very interesting lib. Thank you for sharing your knowledges on audio synthesis.

I think it could be great to make this library usable as a fallback for the WebMIDIAPI.

Indeed, this APÏ will soon ship in many browsers and your work could be very usefull for old browsers especially if you add more intruments (ideally an instrument for each General MIDI program group http://en.wikipedia.org/wiki/General_MIDI#Program_change_events).

The repo for the WebMIDIAPI polyfill : https://github.com/cwilso/WebMIDIAPIShim

nfroidure commented 10 years ago

Btw, not sure, but, i think you do not need to pass throught dataURI generation to synthetize sounds, a look at this simple synth may help https://github.com/cwilso/monosynth/blob/gh-pages/index.html

keithwhor commented 10 years ago

No intention at present moment to make this a fallback for WebMIDIAPI, though anyone is free to modify as they please :). The biggest "WOW" factor of audiosynth.js may be the AudioSynth.play() function, but the .WAV file generation is the actual focus. I appreciate the input, definitely, and will keep it in mind.