How to modulate params from a Web Audio Api Script

2019-08-30 19:02发布

I am working on a Browser Synth with the Web Audio Api. Instead of using the "build in" OscillatorNode I want to develop a custom Oscillator model via the ScriptProcessorNode. I am able to modulate the AudioParams of the "Build in" nodes with other nodes.

How can I connect internal Params of the ProcessorNode to other AudioNodes?

1条回答
【Aperson】
2楼-- · 2019-08-30 19:46

If you mean "how do I create AudioParam members of a ScriptProcessorNode that I can connect other sources to, to modulate my ScriptProcessor" - the short answer is, today you can't. It probably will not be in version 1 of Web Audio: https://github.com/WebAudio/web-audio-api/issues/134.

查看更多
登录 后发表回答