How to modulate params from a Web Audio Api ScriptProcessor?

我只是一个虾纸丫 提交于 2019-12-12 00:28:59

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!