WaveShaperNode.WaveShaperNode()

这篇翻译不完整。请帮忙从英语翻译这篇文章

Web Audio APIWaveShaperNode() 构造方法创建一个新的 WaveShaperNode对象,是一个可以用来表示非线性畸变的AudioNode

语法

var waveShaperNode = new WaveShaperNode(context, options)

参数

 继承 AudioNodeOptions 字典的参数。

context
AudioContext的一个引用。
options 可选
Options参数如下:
  • curve: 用于波形形成效果的修正曲线。输入信号通常在[-1;1]的范围间。
  • oversample: 指定在应用修正曲线时会被使用的过采样的类别(如果有的话)。有效的值有'none', '2x', 或者'4x'。缺省情况下是'none'。

返回值

一个新的WaveShaperNode对象的实例。

规范

Specification Status Comment
Web Audio API
WaveShaperNode()
Working Draft 初始化定义。

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
WaveShaperNode() constructorChrome Full support 55
Notes
Full support 55
Notes
Notes Before Chrome 59, the default values were not supported.
Edge ? Firefox Full support 53IE No support NoOpera Full support 42Safari ? WebView Android Full support 55
Notes
Full support 55
Notes
Notes Before Chrome 59, the default values were not supported.
Chrome Android Full support 55
Notes
Full support 55
Notes
Notes Before Chrome 59, the default values were not supported.
Edge Mobile ? Firefox Android Full support 53Opera Android Full support 42Safari iOS ? Samsung Internet Android Full support 6.0

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
See implementation notes.
See implementation notes.

文档标签和贡献者

标签: 
此页面的贡献者: mdnwebdocs-bot, Tipwheal
最后编辑者: mdnwebdocs-bot,