From 4bf863e0c983633b75da70de660e0fa237b33f04 Mon Sep 17 00:00:00 2001 From: EdricCantu <136949182+EdricCantu@users.noreply.github.com> Date: Sun, 17 Mar 2024 20:15:24 -0500 Subject: [PATCH] fixed dumbassery i.js converted milliseconds to seconds. --- i.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i.js b/i.js index 6b8a272..6a45c1c 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.25); + gain.gain.exponentialRampToValueAtTime(1e-9, context.currentTime+0.1); stopping = true; setTimeout(()=>{ oscillator.stop(); oscillator = undefined; stopping = false; - }, 0.5); + }, 200); }