back to list

Re: unit numbers** to ratios (was Re: (d / O * F) * f)

🔗Dave Keenan <d.keenan@xx.xxx.xxx>

2/17/1999 7:27:04 PM

In case anyone's wondering, this thread is about a simple formula due to Dan Stearn that generates a ratio (N/D) to approximate any number of steps (n) of any (d)-tET.

Some corrections to my previous post on this topic.

Multiplying the number of divisions, d, by 2/ln(2) ~= 2.8854 to generate the magic number minimises the error near 1/1 but this is not what we want. We want to minimise the error over all intervals between 1/1 and the tritone (half-octave) inclusive. I have empirically determined that approx. 2.9071 does this (using a spreadsheet).

Amazingly the underlying error in Dan's formula (with this modification) is only +-1.5 cents. By "underlying error" I mean errors apart from those due to rounding the numerator and denominator to the nearest integers. It starts off at zero error for the unison, goes down to 1.5 cents flat around the minor third, climbs back to zero error again just past the fourth and increases to 1.5 cents sharp by the tritone.

32/11 (~=2.9091) is a better approximation to 2.9071... than 35/12, and again, we don't have to worry about which way to round .5's.

The magic numbers generated by 35/12 (rounding .5's down) deviate from optimum at the following tETs less than 80: 17, 27..29, 38..41, 49..53, 60..65, 70..77.

Those generated by 32/11 deviate from optimum at: 27, 38, 49, 60, 70, 71.

The next best rational approximation of 2.9071... (it irks me not to have an analytic expression for this) is 93/32 which deviates from optimum at 59-tET. Then there's 125/43 which is as good as anyone could want since it works all the way up to 112 tET.

For 17-tET Dan gave
1/1, 51/49, 13/12, 53/47, 27/23, 11/9, 14/11, 57/43, 29/21[i]42/29, 86/57,
11/7, 18/11, 46/27, 94/53, 24/13, 98/51, 2/1

The revised formula gives the slightly more accurate
1/1 25/24 51/47 26/23 53/45 27/22 55/43 4/3 57/41 82/57 3/2 86/55 44/27 90/53 23/13 94/51 48/25 2/1

But in another sense both of these are "too accurate", i.e. they give many ratios which are too complex to be musically significant, as Dan agrees.

I also found that the derivation of 35/12 proposed by Dan is definitely not numerology, but not quite correct either.

If we want the underlying error to be zero at the fourth (4/3) [and this is close to optimum], we can work out what fraction of an octave a fourth corresponds to and multiply this by 7 (because (7+1)/(7-1) = 4/3). One way of working out this fraction is to consider a tET with accurate fourths, e.g. 12-tET. Since a fourth is 5 semitones, 5/12 * 7 = 35/12 (~= 2.9167) should work. But note that the 7 is not due to the number of semitones in a fifth. If we choose another tET with better fourths, say 53-tET, we get the better approximation of 22/53 * 7 = 154/53 (~= 2.9057).

To recap: The magic numbers aren't quite roundings of (d / O * F) * f, but
d * 2.90708338... (or d * 125/43 is close enough).

m = Round(d * 125/43)
N = m+n
D = m-n

Now what happens if, instead of just rounding m to the nearest integer, we don't round m but we round N and D to the nearest even number (exact odds go up, and of course we then divide them both by 2)? Do we get ratios that look more musical without being too inaccurate? i.e.

m = d * 125/43
N = Round((m+n)/2)
D = Round((m-n)/2)

Alas, this simplifies about half the ratios but it can make some worse. I suspect Dan already discovered this since his "formula" looked more like this than my previous translation, although his results appear to correspond to the previous.

Converting a given ratio N/D to the nearest n steps of a particular d-tET is easy.

n = Round( d * ln(N/D) / ln(2) )

but I never thought there was any easy way to find a musically significant ratio near any given n steps of d-tET since there is usually more than one answer. This is the whole point of using a tET instead of JI; commas "disappear", so the same interval (number of steps) can serve more than one purpose (ratio).

However, I'm surprised that Dan's formula does as well as it does.

Now Mckyyy@aol.com, the numbers look reasonable. What's the algorithm?

It would be useful if either the highest prime allowed, or the maximum error in cents was a parameter. But this is all academic to me, I don't actually have a use for it.

It seems more useful to me to know: For a given d-tET, and a given (prime or odd) limit for the ratios, what is the maximum error in the most accurate *consistent* set of mappings of n steps to ratios? My charts at http://dkeenan.com/Music/OpenTunings.htm answer this for many important cases. If anyone wants the results for cases I haven't covered, let me know.

Regards,
-- Dave Keenan
http://dkeenan.com