diff --git a/src/App.js b/src/App.js index 27281a6..28efb40 100644 --- a/src/App.js +++ b/src/App.js @@ -37,10 +37,13 @@ function App() { clearInterval(gapTimer) o = context.createOscillator() + let g = context.createGain() + g.gain.exponentialRampToValueAtTime(0.08, context.currentTime) o.type = "sine" let frequency = 550.0 o.frequency.value = frequency - o.connect(context.destination) + o.connect(g) + g.connect(context.destination) o.start() startCharTimer()