mirror of
https://github.com/genemecija/learn-morse-code.git
synced 2025-12-06 07:02:00 +01:00
Lower tone volume
This commit is contained in:
parent
b11506f6de
commit
1e75238eef
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue