我能够使用一个振荡器来调制另一个振荡器频率,或增益节点增益值...但是当我连接到双二阶滤波器频率参数时没有任何变化。这是一个错误吗?
https://jsbin.com/yurenexufe/edit?js,output
let ctx = new AudioContext()
let o = ctx.createOscillator()
let oGain = ctx.createGain()
let lfo = ctx.createOscillator()
lfo.type = 'sin'
lfo.frequency.value = 5
let lfoGain = ctx.createGain()
let hipass = ctx.createBiquadFilter()
hipass.type = 'highpass'
hipass.frequency.value = 3000
o.connect(oGain)
lfoGain.gain.value = 25
oGain.connect(hipass)
hipass.connect(ctx.destination)
o.type = 'square'
lfo.connect(lfoGain)
lfoGain.connect(hipass.frequency) // does nothing?
lfoGain.connect(o.frequency) // works
o.start()
lfo.start()
最佳答案
好吧,我的低频振荡器需要更高的增益
值才能听出差异。将其从 25
更改为 1000
我可以听到。
关于javascript - LFO 不影响双二阶滤波器频率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40478059/