You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constsound=sono.create('boom.mp3');// playbacksound.play();sound.pause();sound.stop();// play with 200ms delaysound.play(0.2);// set volumesound.volume=0.5;// fade out volume to 0 over 2 secondssound.fade(0,2);// seek to 0.5 secondssound.seek(0.5);// play sound at double speedsound.playbackRate=2;// play sound at half speedsound.playbackRate=0.5;// loopsound.loop=true;// play at 3ssound.currentTime=3;
// raw sound data (AudioBuffer, MediaElement, MediaStream, Oscillator type)console.log(sound.data);// frequency for Oscillator source typeconsole.log(sound.frequency);// output node (GainNode)console.log(sound.gain);