2016-11-08 7 views
0

私は発振器を使って別の発振器周波数、またはゲインノードのゲイン値を変調することができます...しかし、私がbiquadfilter周波数パラメータに接続すると何も変わりません。これはバグですか?LFOはバイクワッドフィルタの周波数に影響しません

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

答えて

1

オーケー、私は違いを聞いて、私のLFOにWAY高いgain値を必要としていました。 25から1000に変更しました。

関連する問題