Bug 17369: Oscillator.detune attribute not defined
authorcrogers
Tue, 09 Oct 2012 17:21:19 -0700
changeset 184 cb14c7445a27
parent 183 9224fb26e77d
child 185 cbd3c4cff8e8
Bug 17369: Oscillator.detune attribute not defined
webaudio/specification.html
--- a/webaudio/specification.html	Tue Oct 09 16:08:50 2012 -0700
+++ b/webaudio/specification.html	Tue Oct 09 17:21:19 2012 -0700
@@ -3201,8 +3201,20 @@
 less-costly approaches on lower-end hardware.
 </p>
 
+<p>
+Both .frequency and .detune are <em>a-rate</em> parameters and are used together to determine a <em>computedFrequency</em> value:
+</p>
+
+<pre>
+computedFrequency(t) = frequency(t) * pow(2, detune(t) / 1200)
+</pre>
+
+<p>
+The Oscillator's instantaneous phase at each time is the time integral of <em>computedFrequency</em>.
+</p>
+
 <pre>    numberOfInputs  : 0
-    numberOfOutputs : 1
+    numberOfOutputs : 1 (mono output)
     </pre>
 
 <div class="block">