Lower tone volume

This commit is contained in:
Gene Mecija 2019-12-22 00:21:52 -08:00
parent b11506f6de
commit 1e75238eef

View file

@ -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()