如何从 Web Audio Api ScriptProcessor 调制参数? [英] How to modulate params from a Web Audio Api ScriptProcessor?
问题描述
我正在使用 Web Audio Api 开发浏览器合成器.我想通过 ScriptProcessorNode 开发自定义 Oscillator 模型,而不是使用内置"OscillatorNode.我能够用其他节点调制内置"节点的 AudioParams.
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.
如何将 ProcessorNode 的内部参数连接到其他 AudioNode?p>
How can I connect internal Params of the ProcessorNode to other AudioNodes?
推荐答案
如果您的意思是我如何创建 ScriptProcessorNode 的 AudioParam 成员,以便我可以将其他源连接到,以调制我的 ScriptProcessor" - 简短的回答是,今天你不能.它可能不会出现在 Web Audio 的第 1 版中:https://github.com/WebAudio/web-audio-api/issues/134.
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.
这篇关于如何从 Web Audio Api ScriptProcessor 调制参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!