diff --git a/i.js b/i.js index db8973e..6b8a272 100644 --- a/i.js +++ b/i.js @@ -49,13 +49,13 @@ function play(){ } function stop(){ playpause.children[0].src = "play.svg" - gain.gain.exponentialRampToValueAtTime(1e-9, context.currentTime+0.1); + gain.gain.exponentialRampToValueAtTime(1e-9, context.currentTime+0.25); stopping = true; setTimeout(()=>{ oscillator.stop(); oscillator = undefined; stopping = false; - }, 0.2); + }, 0.5); }