오실레이터를 사용하여 AudioBufferSource에 피치 비브라토를 적용하려고합니다. WebAudio : 오실 레이팅 AudioBufferSource playbackRate
var source = context.createBufferSource();
source.connect(context.destination);
source.buffer = buffer;
source.loop = true;
source.start(0);
// None of the below seems to have any effect in Chrome
var osc = context.createOscillator();
osc.type = "sine";
osc.frequency.value = 0.5;
osc.start(0);
var osc_gain = context.createGain();
osc_gain.connect(source.playbackRate);
osc.connect(osc_gain);
// osc_gain.gain.value = 0.1 doesn't work
osc_gain.gain.setValueAtTime(0.1, 0);
는 여기에 바이올린입니다.
http://jsfiddle.net/HRkcE/12/
오실레이터는 크롬에 어떤 영향을 미칠 것 같지 않지만, (내가 직접 osc_gain.gain.value 설정이 작동하지 않는 것을 생각하면) 파이어 폭스에서 일하고있다.
Chrome에서 작동하지 않도록 잘못하고 있습니까?
대단히 감사합니다. –