Skip to content

Commit

Permalink
Merge pull request #1408 from rtoy/1363-osc-link-to-computed-freq
Browse files Browse the repository at this point in the history
Fix #1363: Add links to Oscillator computed frequency
  • Loading branch information
rtoy committed Oct 16, 2017
2 parents 5cd4fbf + 4126851 commit e0b8e4f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17773,14 +17773,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 @@ -17979,8 +17979,10 @@ <h3>
<dd>
<p>
A detuning value (in cents) which will offset the
<a><code>frequency</code></a> by the given amount. It forms a
<a>compound parameter</a> with <code>frequency</code>.
<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>
to form the <a>computedOscFrequency</a>.
</p>
<div class="audioparam-info">
<table>
Expand Down Expand Up @@ -18044,8 +18046,11 @@ <h3>
</dt>
<dd>
<p>
The frequency (in Hertz) of the periodic waveform. It forms a
<a>compound parameter</a> with <code>detune</code>.
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> to
form the <a>computedOscFrequency</a>. Its <a>nominal range</a>
is [-<a>Nyquist frequency</a>, <a>Nyquist frequency</a>].
</p>
<div class="audioparam-info">
<table>
Expand Down

0 comments on commit e0b8e4f

Please sign in to comment.