Two simple sounds are added for Mozilla
function playSound() {
var output = new Audio();
output.mozSetup(1, 44100);
var sound1 = new Float32Array(22050);
for (var i = 0; i < samples.length ; i++)
sound1[i] = Math.sin( (i + .001*i*i) / 20 )*Math.exp(-i*.0007);
// sound2[i] = Math.pow( Math.sin( i*i*i ), 100)*Math.exp(-i*.0002);
output.mozWriteAudio(sound);
}
I've found very quickly this simple script for Mozilla, but I didn't find analog for WebKit after googling Web for about 2 hours. And it takes me ages to learn Web Audio API (till Monday I think :).