问题
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:
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.
来源:https://stackoverflow.com/questions/19146776/how-to-modulate-params-from-a-web-audio-api-scriptprocessor