add DynamicsCompressorNode parameters
authorcrogers
Mon, 12 Mar 2012 15:32:19 -0700
changeset 37 980d513ab2d7
parent 36 db91f8c04176
child 38 585995b95ec6
add DynamicsCompressorNode parameters
webaudio/specification.html
--- a/webaudio/specification.html	Fri Mar 09 15:16:42 2012 -0800
+++ b/webaudio/specification.html	Mon Mar 12 15:32:19 2012 -0700
@@ -1799,11 +1799,35 @@
 
     interface <dfn id="dfn-DynamicsCompressorNode">DynamicsCompressorNode</dfn> : AudioNode {
 
-        // a few attributes such as threshold, attack, and release should be defined here.
+        readonly attribute AudioParam threshold; // in Decibels
+        readonly attribute AudioParam knee; // in Decibels
+        readonly attribute AudioParam ratio; // unit-less
+        readonly attribute AudioParam reduction; // in Decibels
+        readonly attribute AudioParam attack; // in Seconds
+        readonly attribute AudioParam release; // in Seconds
 
     }
     </code></pre></div></div> 
 
+
+
+    <div id="attributes-DynamicsCompressorNode" class="section"> 
+    <h3>4.20.1. Attributes</h3> 
+    <dl><dt id="dfn-threshold"><code>threshold</code></dt><dd><p>The decibel value above which the compression will start taking effect. </p></dd></dl> 
+    <dl><dt id="dfn-knee"><code>knee</code></dt><dd><p>A decibel value representing the range above the threshold where the curve smoothly transitions to the "ratio" portion. </p></dd></dl> 
+    <dl><dt id="dfn-ratio"><code>ratio</code></dt><dd><p>the decibel value above which the compression will start taking effect. </p></dd></dl> 
+    <dl><dt id="dfn-reduction"><code>reduction</code></dt><dd><p>A read-only decibel value for metering purposes,
+     representing the current amount of gain reduction that the compressor is applying to the signal. </p></dd></dl> 
+
+     <dl><dt id="dfn-attack"><code>attack</code></dt><dd><p>The amount of time to reduce the gain by 10dB. </p></dd></dl> 
+     <dl><dt id="dfn-release"><code>release</code></dt><dd><p>The amount of time to increase the gain by 10dB. </p></dd></dl> 
+
+    </div> 
+
+
+
+
+
   </div>