Experimental 12-TET: Part 2

Last time we looked at equal tempered systems and how they are always of the form:
T(n) = K\alpha ^{n}
And then we explored how we could choose alpha such that we could make certain intervals, such as the 5th, nice. But the problem was that making one interval nice would make others worse than 12-TET. So how can we choose alpha such that we get as close as possible to all the intervals?

Linear regression

The basic idea of linear regression can be summed up in this picture:

An Introduction to Linear Regression Analysis - YouTube

Essentially, it’s a mathematical algorithm to draw line that best fits the data. So, for a given series of data y_n paired with x_n it will find a and b so that y_n \approx ax_n + b. There are more technical details of this algorithm that I won’t go into.
Now looking back at our equation(let’s just say K=1 since it’s not important here):
T(n) = \alpha ^{n}
Take logs on both sides:
ln(T(n)) = ln(\alpha)n
Now, since we chose K=1, then T(n) will be the ratio of the nth interval. For example, T(7) is the ratio of the 5th, which should be 1.5. In fact let’s make T_n our ideal frequency ratio’s(e.g. T_7 = 1.5) then we can use our regression algorithm on ln(T_n) and n which will find the value of ln(\alpha) which minimises our error.
OK so if we do that we get ln(\alpha) =0.05754681823 and therefore our magic value of alpha is:
1.059234861
I call this tuning “DK-Tuning” as it’s the only tuning worthy of our lord and saviour.

It’s is actually very close to 12-TET. I only did this for 1 octave, but if you did this for infinitely many octaves you would get exactly the same alpha value as normal 12-TET, since the interval ratios double every octave and any other value will slowly drift away from these octaves.

DK vs 12-TET

OK now for the comparison, this time in the form of a graph:

On the x-axis is the interval size in half-steps and on the y-axis is the absolute error from the “exact” ratio

And now an audio comparison, try listening first before checking the order and decide which one you like best:

So what did you think? It’s pretty hard to tell the difference but 12-TET was second and DK was first.

Try it yourself

As before, these weird tunings(and more!) can be tried on my VST: https://github.com/AugsEU/Augs-Synth

Leave a comment

Design a site like this with WordPress.com
Get started