Skip to content

Commit

Permalink
fixed dumbassery i.js
Browse files Browse the repository at this point in the history
converted milliseconds to seconds.
  • Loading branch information
EdricCantu committed Mar 18, 2024
1 parent 46d0439 commit 4bf863e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions i.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 4bf863e

Please sign in to comment.