diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/waveshapernode/index.html | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/waveshapernode/index.html')
-rw-r--r-- | files/zh-cn/web/api/waveshapernode/index.html | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/waveshapernode/index.html b/files/zh-cn/web/api/waveshapernode/index.html new file mode 100644 index 0000000000..3cf690d41f --- /dev/null +++ b/files/zh-cn/web/api/waveshapernode/index.html @@ -0,0 +1,94 @@ +--- +title: WaveShaperNode +slug: Web/API/WaveShaperNode +translation_of: Web/API/WaveShaperNode +--- +<p>{{ APIRef("Web Audio API") }}</p> + +<div> +<p><strong><code>WaveShaperNode</code></strong> 接口表示一个非线性的畸变器。 是一个使用曲线来将一个波形畸变应用到一个声音信号中的{{domxref("AudioNode")}} 。 除了明显的失真效果之外, 它通常用来给信号添加一个暖调的感觉。</p> +</div> + +<p> 一个<code>WaveShaperNode</code> 总是有一个确切的输入和输出。</p> + +<table class="properties"> + <tbody> + <tr> + <th scope="row">输入数目</th> + <td><code>1</code></td> + </tr> + <tr> + <th scope="row">输出数目</th> + <td><code>1</code></td> + </tr> + <tr> + <th scope="row">信道计数模式</th> + <td><code>"max"</code></td> + </tr> + <tr> + <th scope="row">信道计数</th> + <td><code>2</code> (不在缺省的计数模式中使用)</td> + </tr> + <tr> + <th scope="row">信道解释</th> + <td><code>"speakers"</code></td> + </tr> + </tbody> +</table> + +<h2 id="构造器">构造器</h2> + +<dl> + <dt>{{domxref("WaveShaperNode.WaveShaperNode", "WaveShaperNode()")}}</dt> + <dd> 创建一个新的<code>WaveShaperNode</code> 对象的实例。</dd> +</dl> + +<h2 id="属性">属性</h2> + +<p><em> 包含了继承自父类</em><em>{{domxref("AudioNode")}}的属性</em>。</p> + +<dl> + <dt>{{domxref("WaveShaperNode.curve")}}</dt> + <dd>是一个{{domxref("Float32Array")}}描述要应用的失真数值的数组。</dd> + <dt>{{domxref("WaveShaperNode.oversample")}}</dt> + <dd>是一个描述是否必须使用过采样的枚举值。 过采样是一个用来在将失真效果应用到音频信号之前创建更多采样(上采样)的技术。</dd> +</dl> + +<h2 id="方法">方法</h2> + +<p><em>没有特有的方法; 从父类 </em><em>{{domxref("AudioNode")}}继承了方法</em>。</p> + +<h2 id="示例">示例</h2> + +<p>{{page("/en-US/docs/Web/API/AudioContext.createWaveShaper","Example")}}</p> + +<h2 id="规范">规范</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Web Audio API', '#the-waveshapernode-interface', 'WaveShaperNode')}}</td> + <td>{{Spec2('Web Audio API')}}</td> + <td> </td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> + + +<p>{{Compat("api.WaveShaperNode")}}</p> +</div> + +<h2 id="相关链接">相关链接</h2> + +<ul> + <li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li> +</ul> |