4 ms·
Actually it uses a small Flash app to generate the sound (see the News section at the bottom of the page). I wonder if data URLs could be used like that though?
by kj12345 16y ago
Actually it uses a small Flash app to generate the sound (see the News section at the bottom of the page). I wonder if data URLs could be used like that though?
- bfirsh 16y agoI tried that, but unfortunately data URLs are far too slow. Firefox 3.7 has some exciting audio APIs though: https://wiki.mozilla.org/Audio_Data_API https://wiki.mozilla.org/Audio_Data_API I've been meaning to write a JSNES prototype for them.
- kj12345 16y agoThanks, looks like a very useful API. In addition to synthesizing audio it also has the ability to do spectrum analysis: http://vimeo.com/8525101 http://vimeo.com/8525101
- phoboslab 16y agoThis demo seems to do just that: http://acko.net/files/audiosynth/index.html http://acko.net/files/audiosynth/index.html Edit: It's not exactly as "dynamic" as I thought. The different samples are generated once and then played in a loop. So the audio data is not generated in real time, but it is generated.