Nearest just interval

Revision as of 23:06, 9 November 2010 by Wikispaces>genewardsmith (**Imported revision 178128839 - Original comment: **)

IMPORTED REVISION FROM WIKISPACES

This is an imported revision from Wikispaces. The revision metadata is included below for reference:

This revision was by author genewardsmith and made on 2010-11-09 23:06:12 UTC.
The original revision id was 178128839.
The revision comment was:

The revision contents are below, presented both in the original Wikispaces Wikitext format, and in HTML exactly as Wikispaces rendered it.

Original Wikitext content:

An irrational interval or ratio of frequencies given by a real number r has an infinite list of //nearest just intervals//; if r is rational, the list is finite, terminating in r. For arbitrary (including negative) real numbers this corresponds to what number theorists call //best rational approximations//. A ratio of integers p/q with q > 0 and p and q relatively prime is a best rational approximation if there is no ratio m/n with n < q which is a better approximation to r. If r is an interval of music it is positive, and both p and q are positive. Note that a nearest just interval is not necessarily nearest in logarithmic terms; 4/3 and 3/2 are the same distance in cents from sqrt(2) = 600 cents, but |4/3 - sqrt(2)| = .08088 whereas |3/2 - sqrt(2)| = 0.08479, which is larger.

Best rational approximations also arise in music theory logarithmically, as the best rational approximations to the logarithm base two of some number of interest such as 3/2 or 5^(1/4) is often of interest.

The [[http://en.wikipedia.org/wiki/Continued_fraction#Semiconvergents|semiconvergents]] of the continued fraction for r include all of the best rational approximations. The convergents are equivalent with a stronger notion of best approximation, namely [[http://en.wikipedia.org/wiki/Continued_fraction#Best_rational_approximations|best relative approximation]]. Here it is required that |qr - p| is less than |nr - m| for any n < q. 

==Examples==
The 600-cent interval sqrt(2) (6 steps of [[12edo]], "Tritone") approximates following ratios:
|| **freq. ratio** || **log2([[Tenney Height]])** || **size** in cents || **"error"** in cents ||
|| ... || ... || ... || ... ||
||= 1 / 1 ||= 0.0 ||= 0.0 ||= 600.0||
||= 3 / 2 ||= 2.585 ||= 701.96 ||= 101.96 ||
||= 4 / 3 ||= 3.585 ||= 498.04 ||= 101.96 ||
||= 7 / 5 ||= 5.129 ||= 582.51 ||= 17.49 ||
||= 17 / 12 ||= 7.672 ||= 603.00 ||= 3.000 ||
|| ... || ... || ... || ... ||

The 300-cent interval 2^(1/4) (3 steps of [[12edo]], "minor third") approximates following ratios:
|| **freq. ratio** || **log([[Tenney Height]])** || **size** in cents || **"error"** in cents ||
|| ... || ... || ... || ... ||
||= 1 / 1 ||= 0.0 ||= 0.0 ||= 300.0||
||= 6 / 5 ||= 4.907 ||= 315.64 ||= 15.64 ||
||= 13 / 11 ||= 7.160 ||= 289.21 ||= 10.79 ||
||= 19 / 16 ||= 8.248 ||= 297.51 ||= 2.49 ||
||= 25 / 21 ||= 9.036 ||= 301.84 ||= 1.84 ||
|| ... || ... || ... || ... ||

The best rational approximations to log2(3/2) define edos which have especially good approximations to the fifth:
|| **freq. ratio** || **log([[Tenney Height]])** || **size** in cents || **"error"** in cents ||
|| ... || ... || ... || ... ||
||= 0 / 1 || X || X ||= 701.96 ||
||= 1 / 1 || 0.0 ||= 1200.0 ||= 498.04 ||
||= 1 / 2 || 1.0 ||= -1200.0 ||= 101.96 ||
||= 2 / 3 || 2.585 ||= -701.96 ||= 98.04 ||
||= 3 / 5 || 3.907 ||= -884.36 ||= 18.04 ||
||= 4 / 7 || 4.807 ||= -968.83 ||= 16.24 ||
||= 7 / 12 || 6.392 ||= -933.129 ||= 1.955 ||
||= 17 / 29 || 8.945 ||= -924.622 ||= 1.493 ||
||= 24 / 41 || 9.943 ||= -927.107 ||= 0.484 ||

Original HTML content:

<html><head><title>Nearest just interval</title></head><body>An irrational interval or ratio of frequencies given by a real number r has an infinite list of <em>nearest just intervals</em>; if r is rational, the list is finite, terminating in r. For arbitrary (including negative) real numbers this corresponds to what number theorists call <em>best rational approximations</em>. A ratio of integers p/q with q &gt; 0 and p and q relatively prime is a best rational approximation if there is no ratio m/n with n &lt; q which is a better approximation to r. If r is an interval of music it is positive, and both p and q are positive. Note that a nearest just interval is not necessarily nearest in logarithmic terms; 4/3 and 3/2 are the same distance in cents from sqrt(2) = 600 cents, but |4/3 - sqrt(2)| = .08088 whereas |3/2 - sqrt(2)| = 0.08479, which is larger.<br />
<br />
Best rational approximations also arise in music theory logarithmically, as the best rational approximations to the logarithm base two of some number of interest such as 3/2 or 5^(1/4) is often of interest.<br />
<br />
The <a class="wiki_link_ext" href="http://en.wikipedia.org/wiki/Continued_fraction#Semiconvergents" rel="nofollow">semiconvergents</a> of the continued fraction for r include all of the best rational approximations. The convergents are equivalent with a stronger notion of best approximation, namely <a class="wiki_link_ext" href="http://en.wikipedia.org/wiki/Continued_fraction#Best_rational_approximations" rel="nofollow">best relative approximation</a>. Here it is required that |qr - p| is less than |nr - m| for any n &lt; q. <br />
<br />
<!-- ws:start:WikiTextHeadingRule:0:&lt;h2&gt; --><h2 id="toc0"><a name="x-Examples"></a><!-- ws:end:WikiTextHeadingRule:0 -->Examples</h2>
The 600-cent interval sqrt(2) (6 steps of <a class="wiki_link" href="/12edo">12edo</a>, &quot;Tritone&quot;) approximates following ratios:<br />


<table class="wiki_table">
    <tr>
        <td><strong>freq. ratio</strong><br />
</td>
        <td><strong>log2(<a class="wiki_link" href="/Tenney%20Height">Tenney Height</a>)</strong><br />
</td>
        <td><strong>size</strong> in cents<br />
</td>
        <td><strong>&quot;error&quot;</strong> in cents<br />
</td>
    </tr>
    <tr>
        <td>...<br />
</td>
        <td>...<br />
</td>
        <td>...<br />
</td>
        <td>...<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">1 / 1<br />
</td>
        <td style="text-align: center;">0.0<br />
</td>
        <td style="text-align: center;">0.0<br />
</td>
        <td style="text-align: center;">600.0<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">3 / 2<br />
</td>
        <td style="text-align: center;">2.585<br />
</td>
        <td style="text-align: center;">701.96<br />
</td>
        <td style="text-align: center;">101.96<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">4 / 3<br />
</td>
        <td style="text-align: center;">3.585<br />
</td>
        <td style="text-align: center;">498.04<br />
</td>
        <td style="text-align: center;">101.96<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">7 / 5<br />
</td>
        <td style="text-align: center;">5.129<br />
</td>
        <td style="text-align: center;">582.51<br />
</td>
        <td style="text-align: center;">17.49<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">17 / 12<br />
</td>
        <td style="text-align: center;">7.672<br />
</td>
        <td style="text-align: center;">603.00<br />
</td>
        <td style="text-align: center;">3.000<br />
</td>
    </tr>
    <tr>
        <td>...<br />
</td>
        <td>...<br />
</td>
        <td>...<br />
</td>
        <td>...<br />
</td>
    </tr>
</table>

<br />
The 300-cent interval 2^(1/4) (3 steps of <a class="wiki_link" href="/12edo">12edo</a>, &quot;minor third&quot;) approximates following ratios:<br />


<table class="wiki_table">
    <tr>
        <td><strong>freq. ratio</strong><br />
</td>
        <td><strong>log(<a class="wiki_link" href="/Tenney%20Height">Tenney Height</a>)</strong><br />
</td>
        <td><strong>size</strong> in cents<br />
</td>
        <td><strong>&quot;error&quot;</strong> in cents<br />
</td>
    </tr>
    <tr>
        <td>...<br />
</td>
        <td>...<br />
</td>
        <td>...<br />
</td>
        <td>...<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">1 / 1<br />
</td>
        <td style="text-align: center;">0.0<br />
</td>
        <td style="text-align: center;">0.0<br />
</td>
        <td style="text-align: center;">300.0<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">6 / 5<br />
</td>
        <td style="text-align: center;">4.907<br />
</td>
        <td style="text-align: center;">315.64<br />
</td>
        <td style="text-align: center;">15.64<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">13 / 11<br />
</td>
        <td style="text-align: center;">7.160<br />
</td>
        <td style="text-align: center;">289.21<br />
</td>
        <td style="text-align: center;">10.79<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">19 / 16<br />
</td>
        <td style="text-align: center;">8.248<br />
</td>
        <td style="text-align: center;">297.51<br />
</td>
        <td style="text-align: center;">2.49<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">25 / 21<br />
</td>
        <td style="text-align: center;">9.036<br />
</td>
        <td style="text-align: center;">301.84<br />
</td>
        <td style="text-align: center;">1.84<br />
</td>
    </tr>
    <tr>
        <td>...<br />
</td>
        <td>...<br />
</td>
        <td>...<br />
</td>
        <td>...<br />
</td>
    </tr>
</table>

<br />
The best rational approximations to log2(3/2) define edos which have especially good approximations to the fifth:<br />


<table class="wiki_table">
    <tr>
        <td><strong>freq. ratio</strong><br />
</td>
        <td><strong>log(<a class="wiki_link" href="/Tenney%20Height">Tenney Height</a>)</strong><br />
</td>
        <td><strong>size</strong> in cents<br />
</td>
        <td><strong>&quot;error&quot;</strong> in cents<br />
</td>
    </tr>
    <tr>
        <td>...<br />
</td>
        <td>...<br />
</td>
        <td>...<br />
</td>
        <td>...<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">0 / 1<br />
</td>
        <td>X<br />
</td>
        <td>X<br />
</td>
        <td style="text-align: center;">701.96<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">1 / 1<br />
</td>
        <td>0.0<br />
</td>
        <td style="text-align: center;">1200.0<br />
</td>
        <td style="text-align: center;">498.04<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">1 / 2<br />
</td>
        <td>1.0<br />
</td>
        <td style="text-align: center;">-1200.0<br />
</td>
        <td style="text-align: center;">101.96<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">2 / 3<br />
</td>
        <td>2.585<br />
</td>
        <td style="text-align: center;">-701.96<br />
</td>
        <td style="text-align: center;">98.04<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">3 / 5<br />
</td>
        <td>3.907<br />
</td>
        <td style="text-align: center;">-884.36<br />
</td>
        <td style="text-align: center;">18.04<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">4 / 7<br />
</td>
        <td>4.807<br />
</td>
        <td style="text-align: center;">-968.83<br />
</td>
        <td style="text-align: center;">16.24<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">7 / 12<br />
</td>
        <td>6.392<br />
</td>
        <td style="text-align: center;">-933.129<br />
</td>
        <td style="text-align: center;">1.955<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">17 / 29<br />
</td>
        <td>8.945<br />
</td>
        <td style="text-align: center;">-924.622<br />
</td>
        <td style="text-align: center;">1.493<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">24 / 41<br />
</td>
        <td>9.943<br />
</td>
        <td style="text-align: center;">-927.107<br />
</td>
        <td style="text-align: center;">0.484<br />
</td>
    </tr>
</table>

</body></html>