当滤波器频率触底时,使用 LFO 调制滤波器节点频率时,我会突然弹出。
我怀疑这是由于幅度不在截止时。是否也需要调制增益?我希望不必这样做,但我不确定我会怎么做。
编辑:忘记链接到示例代码http://jsfiddle.net/hyf5N/
var context = new webkitAudioContext();
var lfo = context.createOscillator();
lfo.frequency.value = 10;
var saw = context.createOscillator();
saw.type = 'sawtooth';
var filter = context.createBiquadFilter();
filter.type = 'lowpass';
var gain = context.createGainNode();
gain.gain.value = 500;
saw.connect(filter);
lfo.connect(gain);
gain.connect(filter.frequency);
filter.connect(context.destination);
lfo.start(0);
saw.start(0)