Skip to content

Commit

Permalink
Fix #1363: Link to Oscillator computed frequency
Browse files Browse the repository at this point in the history
Make the definitions of Oscillator frequency and detune link to
`computedOscFrequency` to make it clear how the frequency and detune
`AudioParam`s form the compound parameter.
  • Loading branch information
rtoy committed Oct 6, 2017
1 parent 697f710 commit 39b2882
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15895,14 +15895,14 @@ <h2>
<p>
Both <code>frequency</code> and <code>detune</code> are <a>a-rate</a>
parameters, and form a <a>compound parameter</a>. They are used
together to determine a <em>computedFrequency</em> value:
together to determine a <dfn>computedOscFrequency</dfn> value:
</p>
<pre>
computedFrequency(t) = frequency(t) * pow(2, detune(t) / 1200)
computedOscFrequency(t) = frequency(t) * pow(2, detune(t) / 1200)
</pre>
<p>
The OscillatorNode's instantaneous phase at each time is the definite
time integral of <em>computedFrequency</em>, assuming a phase angle
time integral of <a>computedOscFrequency</a>, assuming a phase angle
of zero at the node's exact start time. Its <a>nominal range</a> is
[-<a>Nyquist frequency</a>, <a>Nyquist frequency</a>].
</p>
Expand Down Expand Up @@ -16102,8 +16102,9 @@ <h3>
A detuning value (in cents) which will offset the
<a><code>frequency</code></a> by the given amount. Its default
<code>value</code> is 0. This parameter is <a>a-rate</a>. It
forms a <a>compound parameter</a> with <code>frequency</code>.
Its <a>nominal range</a> is \((-\infty, \infty)\).
forms a <a>compound parameter</a> with <code>frequency</code> to
form the <a>computedOscFrequency</a>. Its <a>nominal range</a> is
\((-\infty, \infty)\).
</dd>
<dt>
<code><dfn>frequency</dfn></code> of type <span class=
Expand All @@ -16112,9 +16113,9 @@ <h3>
<dd>
The frequency (in Hertz) of the periodic waveform. Its default
<code>value</code> is 440. This parameter is <a>a-rate</a>. It
forms a <a>compound parameter</a> with <code>detune</code>. Its
<a>nominal range</a> is [-<a>Nyquist frequency</a>, <a>Nyquist
frequency</a>].
forms a <a>compound parameter</a> with <code>detune</code> to
form the <a>computedOscFrequency</a>. Its <a>nominal range</a> is
[-<a>Nyquist frequency</a>, <a>Nyquist frequency</a>].
</dd>
<dt>
<code><dfn>type</dfn></code> of type <span class=
Expand Down

0 comments on commit 39b2882

Please sign in to comment.