Re:Jsfx; js sound effect generator
by _delirium on Tuesday July 26, 2011 @10:03AM
(#2807341)
Continuously generating-and-playing audio in JS isn't yet possible, except via a few experimental browser-specific APIs (Webkit-based browsers and Firefox have two different ones). But, if you want to generate a discrete portion of sound (e.g. a few seconds), you can produce a .wav file, shove it into the DOM somewhere, and then play it back. So something like this works, but a version that changed the tones in real time as you dragged the sliders wouldn't.
http://egonelbre.com/js/jsfx/index.html?load=%5B%22square%22... ( if thats not a fantastic teleport sound I don't know what is )
Amazing work!
Btw, this is kind of a close to http://thirdcog.eu/apps/cfxr
(watch the vid)
FYI: the sliders don't show up in FF5, you should maybe add some browser compatability messaging.
Let the great experiment begin!