The Riemann zeta function and tuning

From Xenharmonic Wiki
(Redirected from Zeta edo)
Jump to navigation Jump to search

[math]\displaystyle{ \def\hs{\hspace{-3px}} \def\vsp{{}\mkern-5.5mu}{} \def\llangle{\left\langle\vsp\left\langle} \def\lllangle{\left\langle\vsp\left\langle\vsp\left\langle} \def\llllangle{\left\langle\vsp\left\langle\vsp\left\langle\vsp\left\langle} \def\llbrack{\left[\left[} \def\lllbrack{\left[\left[\left[} \def\llllbrack{\left[\left[\left[\left[} \def\llvert{\left\vert\left\vert} \def\lllvert{\left\vert\left\vert\left\vert} \def\llllvert{\left\vert\left\vert\left\vert\left\vert} \def\rrangle{\right\rangle\vsp\right\rangle} \def\rrrangle{\right\rangle\vsp\right\rangle\vsp\right\rangle} \def\rrrrangle{\right\rangle\vsp\right\rangle\vsp\right\rangle\vsp\right\rangle} \def\rrbrack{\right]\right]} \def\rrrbrack{\right]\right]\right]} \def\rrrrbrack{\right]\right]\right]\right]} \def\rrvert{\right\vert\right\vert} \def\rrrvert{\right\vert\right\vert\right\vert} \def\rrrrvert{\right\vert\right\vert\right\vert\right\vert} }[/math][math]\displaystyle{ \def\abs#1{\left|{#1}\right|} \def\norm#1{\left\|{#1}\right\|} \def\floor#1{\left\lfloor{#1}\right\rfloor} \def\ceil#1{\left\lceil{#1}\right\rceil} \def\round#1{\left\lceil{#1}\right\rfloor} \def\rround#1{\left\lfloor{#1}\right\rceil} }[/math]

English Wikipedia has an article on:

The Riemann zeta function is a famous mathematical function, best known for its relationship with the Riemann hypothesis, a 200-year old unsolved problem involving the distribution of the prime numbers. However, it also has an intriguing musical interpretation: the zeta function shows how "well" a given equal temperament approximates the no-limit just intonation relative to its size.

As a result, although the zeta function is best known for its use in analytic number theory, the zeta function is present in the background of some tuning theory — the harmonic entropy model of concordance can be shown to be related to the Fourier transform of the zeta function, and several tuning-theoretic metrics, if extended to the infinite-limit, yield expressions that are related to the zeta function. Sometimes these are in terms of the "prime zeta function", which is closely related and can also be derived as a simple expression of the zeta function.

If you look for a filter to quickly sort all the equal temperaments into those that approximate JI well and those that do not, the edo lists below can be useful. The caveat is that it collapses the variety of characteristics of a temperament to a one-dimensional rating, with little capacity to show the nuances of each system. It is therefore best to keep in mind that judging the temperaments by zeta is no replacement for investigating each temperament in detail.

There are other metrics besides zeta for other definitions of "approximating well", such as mu badness and the various optimised regular temperament tunings when applied to rank-1 (i.e. equal) temperaments.

Much of the below is thanks to the insights of Gene Ward Smith. Below is the original derivation as he presented it, followed by a different derivation from Mike Battaglia below which extends some of the results.

Terminology

Riemann zeta function ("zeta"): A mathematical function which is tied to the harmonic series and to prime numbers, used in tuning theory as an "EDO goodness" function to evaluate how close to JI an EDO is.

Zeta record edo: An equal tuning that sets some kind of record in regards to the zeta function compared to all smaller equal tunings.

Record zeta peak: An equal tuning which is closer to JI than any previous tuning, and is usually an EDO with compressed or stretched octaves, evaluated by the absolute "goodness" of the edo according to the zeta function.

Record zeta peak integer: A zeta record edo by absolute "goodness", when compared only to other edos (i.e. ignoring stretched/compressed equivalences).

Zero: A point where the Riemann zeta function is equal to zero, such as ~2.759edo, representing an equal tuning that does not represent JI much at all. EDOs close to zeroes are called zeta valley EDOs; all known zeroes are on the "critical line" used to obtain tuning information.

Record z gap: A zeta record edo by the size of the gap between its surrounding zeroes, adjusted for the fact that zeroes generally become more dense with larger inputs.

Record zeta integral: A zeta record edo by the size of the area enclosed by the shape of the function between the edo's surrounding zeroes.

Quick info: zeta peak edos

These lists give the best equal divisions of the octave for their size according to the zeta metric.

Zeta peak integer EDOs (pure octaves): 1, 2, 3, 5, 7, 10, 12, 19, 22, 31, 41, 53, 87, 118, 130, 171, 224, 270, 311, ...

Zeta peak EDOs (tempered octaves): 1, 2, 3, 4, 5, 7, 10, 12, 19, 22, 27, 31, 41, 53, 72, 99, 118, 130, 152, 171, 217, 224, 270, ...

See the section below for more information.

Graph links

A link to the graph of zeta can be found at Zeta in Samuelj Plotter. (In the top left menu, make sure that "Enable Checkerboard" is unticked and "Invert Gradient" and "Continuous Gradient" are ticked.) The function has been reoriented to place EDO size along the horizontal axis and weight along the vertical axis, and also scaled by /ln(2) to ensure that the real number line aligns with edos. One can see that with higher weights, the function approaches a cyclic function with a period of 1; this corresponds to the prime 2 dominating more and more extremely as other harmonics are weighted less with higher weights. You can see this easier by raising the entire expression to an absurdly high power, such as 100. Note, however, that this visualization is inaccurate beyond a couple hundred: around 146.5, 324.5 and 473.5, and in many cases after, there appear to be zeroes that are not on the critical line; this is an artifact of the way the function is approximated and is the ultimate reason why the Riemann hypothesis remains unsolved. These actually correspond to zeroes that are very close together but on the critical line.

You may also view the graph of zeta along the critical line on Desmos: Zeta in Desmos. This makes it easier to see peaks, but only works for σ = 1/2.

Plots

Below are some demonstrative plots of the zeta function (strictly speaking, the Z function) on the critical line.

Using the online plotter we can plot Z in the regions corresponding to scale divisions, using the conversion factor t = /ln(2)x, for x a number near or at an edo number. Hence, for instance, to plot 12 plot around 108.777, to plot 31 plot around 281.006, and so forth. An alternative plotter is the applet here.

If you have access to Mathematica, which has Z, zeta and theta as a part of its suite of initially defined functions, you can do even better. Below is a Mathematica-generated plot of Z(x/ln(2)) in the region around 12edo:

plot12.png

The peak around 12 is both higher and wider than the local maximums above 11 and 13, indicating its superiority as an approximation of JI. Note also that the peak occurs at a point slightly larger than 12; this indicates the octave is slightly compressed in the zeta tuning for 12. The size of a step in octaves is 1/x, and hence the size of the octave in the zeta peak value tuning for Nedo is N/x; if x is slightly larger than N as here with N = 12, the size of the zeta tuned octave will be slightly less than a pure octave. Similarly, when the peak occurs with x less than N, we have stretched octaves.

For larger edos, the width of the peak narrows, but for strong edos the height more than compensates, measured in terms of the area under the peak (the absolute value of the integral of Z between two zeros.) Note how 270edo completely dominates its neighbors:

plot270.png

Note that for one of its neighbors, 271, it isn't entirely clear which peak value corresponds to the line of real values from +∞. This can be determined by looking at the absolute value of zeta along other s values, such as s = 1 or s = 3/4, and in this case the local minimum at 271.069 is the value in question. However, other peak values are not without their interest; the local maximum at 270.941, for instance, is associated to a different mapping for 3.

To generate this plot using the free version of Wolfram Cloud, you can run Plot[Abs[RiemannSiegelZ[9.06472028x]], {x, 11.9, 12.1}] and then in the menu select Evaluation > Evaluate Cells. Change "11.9" and "12.1" to whatever values you want, e.g. to view the curve around 15edo you might use the values "14.9" and "15.1".

You can also view the plot using Zeta in Desmos.

Gene Smith's original derivation

Suppose x is a variable representing some equal division of the octave. For example, if x = 80, x corresponds to 80edo with a step size of 15 cents and with pure octaves. Suppose that x can also be continuous, so that it can also represent fractional or "nonoctave" divisions as well, so that it ranges over all possible equal temperaments. The Bohlen–Pierce scale, 13 equal divisions of 3/1, is approximately 8.202 equal divisions of the "octave" (although the octave itself does not appear in this tuning), and would hence be represented by a value of x = 8.202.

Now suppose that x denotes the difference between x and the integer nearest to x:

[math]\displaystyle{ \lfloor x \rceil = \left| x - \left\lfloor x + \frac{1}{2} \right\rfloor \right| }[/math]

For example, 8.202 = 0.202, since it is the difference between 8.202 and the nearest integer, which is 8. Meanwhile, 7.95 = 0.05, which is the difference between 7.95 and the nearest integer, which is 8. This represents the absolute relative error of the octave in equal tuning x, or alternatively how much x is detuned from an edo.

For any value of x, we can construct a p-limit val by rounding x log2(q) to the nearest integer for each prime q up to p. (More technically, this corresponds to what's known as a generalized patent val.) For example, for x = 12, we find 2 at 12, 3 at 19, 5 at 28, etc. Now consider the function

[math]\displaystyle{ \displaystyle \xi_p(x) = \sum_{\substack{2 \leq q \leq p \\ q \text{ prime}}} \left(\frac{\lfloor x \log_2 q \rceil}{\log_2 q}\right)^2 }[/math]

Here, the numerator represents the relative error on each prime, and the denominator represents a weight factor of the logarithm of each prime*, so the function represents a p-limit badness metric.

(* Specifically, the reason we use the weighting 1/log2(p) is because of certain desirable properties it has that singles it out as of unique interest: if the complexity of a prime p is log2(p), then pn is n times as complex as p. Using log2(p) as the complexity also means that the complexity of a harmonic, according to its prime factorization, exactly matches where it's found in the harmonic series, so that e.g. 25 = 5 × 5 is slightly less complex than 26 = 2 × 13 is slightly less complex than 27 = 3 × 3 × 3. Therefore, the 1/log2(p) weighting is a kind of natural inverse-complexity weighting, that is, a simplicity weighting.)

(Also, for those unfamiliar, squaring the error is commonly done because it solves the flaws of two alternative ways of measuring error. Specifically, if you look only at the maximum error, you miss opportunities to make the tuning much better overall by allowing slightly more damage on the most damaged intervals, while if you look only at the average error, then it may be that you are unnecessarily damaging a few intervals a lot just to get intervals that are already in-tune slightly more in-tune, so both extremes have pathological behaviours, and using the squared error counters both of these behaviours so that it represents a more balanced approach to optimization that is used in a variety of disciplines.)

This function has local minima, corresponding to associated generalized patent vals. The minima occur for values of x which are the Tenney-Euclidean tunings of the octaves of the associated vals, while ξp for these minima is the square of the Tenney–Euclidean relative error of the val—equal to the TE error times the TE complexity, and sometimes known as "TE simple badness."

Now suppose we don't want a formula for any specific prime limit, but which applies to all primes. We can't take the above sum to infinity, since it doesn't converge. However, we could change the weighting factor to a power so that it does converge:

[math]\displaystyle{ \displaystyle \xi_\infty(x) = \sum_{\substack{q \geq 2 \\ q \text{ prime}}} \frac{\lfloor x \log_2 q \rceil^2}{q^s} }[/math]

Importantly, when s = 1, the weighting is 1/p for a prime p, so that it's very similar to a 1/(p - 1) weighting. This latter weighting is equal to the average number of times prime p occurs as a factor in the harmonic series, counting repetition, so is of interest because it represents how many harmonics will feel damage from this prime being mistuned. Therefore, the weighting 1/p corresponds to under-prioritizing small primes slightly (with the effect being less slight the smaller the prime, so that at the most extreme, at prime 2 we have 1/2 instead of 1/1 weighting and at prime 3 we have 1/3 instead of 1/2 weighting).

Seeing that we notate the power as s, it might become apparent where the Riemann zeta function will eventually show up.

If s is greater than one, this does converge. However, we might want to make a few adjustments. For one thing, if the error is low enough that the tuning is consistent, then the error of the square of a prime is twice that of the prime, of the cube tripled, and so forth until the error becomes inconsistent. When the weighting uses logarithms and error measures are consistent, then the logarithmic weighting cancels this effect out, so we might consider that prime powers were implicitly included in the Tenney-Euclidean measure - in fact, the primary intuition behind Tenney weighting is that it is the weighting pattern that values 25, 27, and 29 approximately evenly in importance despite being different powers. We can go ahead and include them by adding a factor of 1/n for each prime power pn. A somewhat peculiar but useful way to write the result of doing this is in terms of the von Mangoldt function, an arithmetic function on positive integers which is equal to ln(p) on prime powers pn, and is zero elsewhere. This is written using a capital lambda, as Λ(n), and in terms of it we can include prime powers in our error function as

[math]\displaystyle{ \displaystyle \xi_\infty(x) = \sum_{n \geq 1} \frac{\Lambda(n)}{\ln n} \frac{\lfloor x \log_2 n \rceil^2}{n^s} }[/math]

where the summation is taken formally over all positive integers, though only the primes and prime powers make a nonzero contribution.

Another consequence of the above definition which might be objected to is that it results in a function with a discontinuous derivative, whereas a smooth function be preferred. The function ⌊x2 is quadratically increasing near integer values of x, and is periodic with period 1. Another function with these same properties is 1 − cos(2πx), which is a smooth and in fact an entire function. Let us therefore now define for any s > 1:

[math]\displaystyle{ \displaystyle E_s(x) = \sum_{n \geq 1} \frac{\Lambda(n)}{\ln n} \frac{1 - \cos(2 \pi x \log_2 n)}{n^s} }[/math]

For any fixed s > 1 this gives a real analytic function defined for all x, and hence with all the smoothness properties we could desire.

We can clean up this definition to get essentially the same function:

[math]\displaystyle{ \displaystyle F_s(x) = \sum_{n \geq 1} \frac{\Lambda(n)}{\ln n} \frac{\cos(2 \pi x \log_2 n)}{n^s} }[/math]

This new function has the property that Fs(x) = Fs(0) − Es(x), so that all we have done is flip the sign of Es(x) and offset it vertically. This now increases to a maximum value for low errors, rather than declining to a minimum.

Of more interest is the fact that it is a known mathematical function. The logarithm of the Riemann zeta function function can be expressed in terms of a Dirichlet series involving the von Mangoldt function:

[math]\displaystyle{ \displaystyle \ln \zeta(s)=\sum_{n=2}^\infty \frac{\Lambda(n)}{\ln(n)}\,\frac{1}{n^s} }[/math]

We can rewrite the cosine term in [math]\displaystyle{ F_s(x) }[/math] using the real part of an exponential:

[math]\displaystyle{ \displaystyle \cos(2 \pi x \log_2 n) = \mathrm{Re}\left( \exp{(- 2 \pi i x \log_2 n)} \right) = \mathrm{Re}\left( n^{- \frac{2 \pi i}{\ln 2} x} \right) }[/math]

Substituting back into [math]\displaystyle{ F_s(x) }[/math] gives:

[math]\displaystyle{ \displaystyle F_s(x) = \mathrm{Re} \left( \sum_{n=2}^\infty \frac{\Lambda(n)}{\ln n} \frac{n^{- \frac{2 \pi i}{\ln 2} x}}{n^s} \right) = \mathrm{Re} \left( \ln \zeta \left(s + \frac{2 \pi i}{\ln 2}x \right) \right) }[/math]

If we take exponentials of both sides, then

[math]\displaystyle{ \displaystyle \exp(F_s(x)) = \left| \zeta\left(s + \frac{2 \pi i}{\ln 2}x\right) \right| }[/math]

so that we see that the absolute value of the zeta function serves to measure the relative error of an equal division.

There is an open question as to whether the analytic continuation preserves the properties we are interested in, though empirically it seems to. However, if you do not want to trust the analytic continuation, then the s = 1 line is of interest for the reasons discussed, as though the infinite sum does not converge, every sum for s > 1 does converge, so that we can consider the line at s = 1 as being the "limit" as s approaches 1 from above. This can also be used to sanity-check results at s = 1/2 by seeing where they agree, e.g. as done in the section on #Absolute zeta peak edos, which looks at getting more practical tuning information out of the zeta function via an adjustment for considering absolute mistuning rather than relative error.

Mike Battaglia's expanded results

Zeta yields "relative error" over all rationals

Above, Gene proves that the zeta function measures the Tenney–Euclidean relative error, sometimes called "Tenney–Euclidean Simple Badness," of any edo, taken over all "prime powers". The relative error is simply equal to the tuning error times the size of the edo, so we can easily get the raw "non-relative" tuning error from this as well by simply dividing by the size of the edo.

Here, we strengthen that result to show that the zeta function additionally measures weighted relative error over all rational numbers, relative to the size of the edo.

Let's dive in!

First, let's take the zeta function, expressed as a Dirichlet series:

[math]\displaystyle{ \displaystyle \zeta(s) = \sum_n n^{-s} }[/math]

Now let's do two things: we're going to expand s = σ + it, and we're going to multiply [math]\displaystyle{ \zeta(s) }[/math] by its complex conjugate [math]\displaystyle{ \overline{\zeta(s)} }[/math], noting that [math]\displaystyle{ \overline{\zeta(s)}=\zeta(\overline{s}) }[/math] and [math]\displaystyle{ \left| \zeta(s) \right|^{2} = \zeta(s)\overline{\zeta(s)} }[/math]. We get:

[math]\displaystyle{ \displaystyle \left| \zeta(s) \right| ^2 = \left[\sum_n n^{-(\sigma+it)}\right] \cdot \left[\sum_d d^{-(\sigma-it)}\right] }[/math]

where d is a new variable used internally in the second summation.

Now, let's focus on σ > 1, so that both series are absolutely convergent. The following rearrangement of terms is then justified:

[math]\displaystyle{ \displaystyle \left| \zeta(s) \right|^2 = \sum_{n,d} \left[n^{-(\sigma+it)} \cdot d^{-(\sigma-it)}\right] = \sum_{n,d} \frac{\left({\tfrac{n}{d}}\right)^{-it}}{(nd)^{\sigma}} }[/math]

Now let's do a bit of algebra with the exponential function, and use Euler's identity:

[math]\displaystyle{ \displaystyle \left| \zeta(s) \right|^2 = \sum_{n,d} \frac{e^{-it \ln\left({\tfrac{n}{d}}\right)}}{(nd)^{\sigma}} = \sum_{n,d} \frac{\cos\left(-t \ln\left({\tfrac{n}{d}}\right)\right) + i\sin\left(-t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}} = \sum_{n,d} \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right) - i\sin\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}} }[/math]

where the last equality makes use of the fact that cos(−x) = cos(x) and sin(−x) = −sin(x).

Now, let's decompose the sum into three parts: n = d, n > d, and n < d. Here's what we get:

[math]\displaystyle{ \displaystyle \left| \zeta(s) \right|^2 = \sum_{n=d} \left[ \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right) - i\sin\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}} \right] + \sum_{n\gt d} \left[ \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right) - i\sin\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}} \right] + \sum_{n\lt d} \left[ \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right) - i\sin\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}} \right] }[/math]

We'll deal with each of these separately.

First, in the leftmost summation, we can see that n = d implies ln(n/d) = 0. Since sin(0) = 0, the sin term in the numerator cancels out, yielding:

[math]\displaystyle{ \displaystyle \left| \zeta(s) \right|^2 = \sum_{n=d} \left[ \frac{\cos\left( t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}} \right] + \sum_{n\gt d} \left[ \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right) - i\sin\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}} \right] + \sum_{n\lt d} \left[ \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right) - i\sin\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}} \right] }[/math]

We will not simplify the cosine term further right now, the reasons for which will become apparent below.

Now, let's handle the two summations on the right. The key thing to note here is that we can pair up every term in the second summation with a corresponding term in the third summation that interchanges n and d. To make this clear, let p and q be two integers, and assume without loss of generality that p > q. The term corresponding to n = p, d = q will then appear in the second summation, and the term n = q, d = p will appear in the third summation. Juxtaposing those together, we get the following:

[math]\displaystyle{ \displaystyle \frac{\cos\left(t \ln\left({\tfrac{p}{q}}\right)\right) - i\sin\left(t \ln\left({\tfrac{p}{q}}\right)\right)}{(pq)^{\sigma}} + \frac{\cos\left(t \ln\left({\tfrac{q}{p}}\right)\right) - i\sin\left(t \ln\left({\tfrac{q}{p}}\right)\right)}{(pq)^{\sigma}} }[/math]

Now, noting that ln(p/q) = −ln(q/p) and that sin is an odd function, we can see that the sin terms cancel out, leaving

[math]\displaystyle{ \displaystyle \frac{\cos\left(t \ln\left({\tfrac{p}{q}}\right)\right)}{(pq)^{\sigma}} + \frac{\cos\left(t \ln\left({\tfrac{q}{p}}\right)\right)}{(pq)^{\sigma}} }[/math]

Now, since every term in these two summations has a pair like this, and since we've done nothing but continued rearrangements of an absolutely convergent series, we can modify the original three-part summation to cancel the sin terms out as follows:

[math]\displaystyle{ \displaystyle \left| \zeta(s) \right|^2 = \sum_{n=d} \left[ \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}} \right] + \sum_{n\gt d} \left[ \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}} \right] + \sum_{n\lt d} \left[ \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}} \right] }[/math]

Putting the whole thing back into one series, we get

[math]\displaystyle{ \displaystyle \left| \zeta(s) \right|^2 = \sum_{n,d} \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}} }[/math]

Finally, by making the mysterious substitution t = /ln(2)x, the musical implications of the above will start to reveal themselves:

[math]\displaystyle{ \displaystyle \left| \zeta(s) \right|^2 = \sum_{n,d} \frac{\cos\left(2\pi x \log_2\left(\tfrac{n}{d}\right)\right)}{(nd)^{\sigma}} }[/math]

Let's take a breather and see what we've got.

Interpretation of results: "cosine relative error"

For every strictly positive rational n/d, there is a cosine with period log2(n/d). This cosine peaks at x = N/log2(n/d) for all integers N, or in other words, the Nth-equal division of the rational number nd, and hits troughs midway between.

Our mysterious substitution above was chosen to set the units for this up nicely. The variable x now happens to be measured in divisions of the octave. (The original variable t, which was the imaginary part of the zeta argument s, can be thought of as the number of divisions of the interval e ≈ 535.49, or what Keenan Pepper has called the "natural interval.")

As mentioned in Gene's original zeta derivation, these cosine functions can be thought of as good approximations to the terms in the TE error computation, which are all the squared errors for the different primes. Rather than taking the square of the error, we instead put the error through the function 1 − cos(x)/2, which is "close enough" for small values of x. Since we are always rounding off to the best mapping, this error is never more 0.5 steps of the edo, so since we have −0.5 < x < 0.5 we have a decent enough approximation.

We will call this cosine (relative) error, by analogy with TE (relative) error. It is easy to see that the cosine error is approximately equal to the TE error when the error is small, and only diverges slightly for large errors.

There are three major differences between our "cosine error" functions, and the way we're incorporating them into the result, and what TE is doing:

  1. First, the function here is flipped upside down—that is, we're measuring "accuracy" rather than error—as well as shifted vertically down along the y-axis. Since it is trivial to convert between the two, and since we only care about the relative rankings of edos, it is clear that we're measuring essentially the same thing.
  2. Instead of weighting each interval by 1/log(nd), we weight it by 1/(nd)σ.
  3. Instead of only looking at the primes, as we do in TE, we are now looking at 'all' intervals, and in particular looking at the best mapping for each interval.

The last one is nontrivial, and we will go into detail below.

There are also a few notes we will only write in passing, for now, perhaps to build on later:

  1. If we do want 1/log(nd) weighting, we can derive this kind of weighting from an antiderivative of the zeta function.
  2. If we only want the primes, rather than all intervals, we can use something called the "Prime Zeta Function" to get those kinds of summations.
  3. If we do want the true TE squared error rather than our cosine error, then we would end up getting something called "parabolic waves" rather than cosine waves for each interval. A parabolic wave is the antiderivative of a sawtooth wave, and as it is a periodic signal, it has a Fourier series and can be expressed as a sum of sinusoids. We can use this to get a derivation of the squared error as an infinite sum of zeta functions.

For now, though, we will focus only on the basic zeta result that we have.

Going back to the infinite summation above, we note that these cosine error (or really "cosine accuracy") functions are being weighted by 1/(nd)σ. Note that σ, which is the real part of the zeta argument s, serves as sort of a complexity weighting—it determines how quickly complex rational numbers become "irrelevant." Framed another way, we can think of it as the degree of "rolloff" formed by the resultant (musical, not mathematical) harmonic series formed by those rationals with d = 1. Note that this rolloff is much stronger than the usual 1/log(nd) rolloff exhibited by TE error, which is one reason that zeta converges to something coherent for all rational numbers, whereas TE fails to converge as the limit increases. We will use the term "rolloff" to identify the variable σ below.

Putting this all together, we can take the approach to fix σ, specifying a rolloff, and then let x (or t) vary, specifying an edo. The resulting function gives us the measured accuracy of edos across all unreduced rational numbers with respect to the chosen rolloff. Taking it all together, we get a Tenney-weighted sum of cosine accuracy over all unreduced rationals. QED.

It is extremely noteworthy to mention how "composite" rationals are treated differently than with TE error. In addition to our usual error metric on the primes, we also go to each rational, look for the best "direct" or "patent" mapping of that rational within the edo, and add 'that' to the edo's score. In particular, we do this even when the best mapping for some rational doesn't match up with the mapping you'd get from it just looking at the primes.

So, for instance, in 16edo, the best mapping for 3/2 is 9 steps out of 16, and using that mapping, we get that 9/8 is 2 steps, since 9 * 2 − 16 = 2. However, there is a better mapping for 9/8 at 3 steps—one which ignores the fact that it is no longer equal to two 3/2's. This can be particularly useful for playing chords: 16edo's "direct mapping" for 9 is useful when playing the chord 4:5:7:9, and the "indirect" or "prime-based" mapping for 9 is useful when playing the "major 9" chord 8:10:12:15:18. We can think of the zeta function as rewarding equal temperaments not just for having a good approximation of the primes, but also for having good "extra" approximations of rationals which can be used in this way. And although 16edo is pretty high error, similar phenomena can be found for any edo which becomes inconsistent for some chord of interest.

One way to frame this in the usual group-theoretic paradigm is to consider the group in which each strictly positive rational number is given its own linearly independent basis element. In other words, look at the free group over the strictly positive rationals, which we'll call "meta-JI." The zeta function can then be thought of as yielding an error for all meta-JI generalized patent vals. Whether this can be extended to all meta-JI vals, or modified to yield something nice like a "norm" on the group of meta-JI vals, is an open question. Regardless, this may be a useful conceptual bridge to understand how to relate the zeta function to "ordinary" regular temperament theory.

Now, one nitpick to notice above is that this expression technically involves all "unreduced" rationals, e.g. there will be a cosine error term not just for 3/2, but also for 6/4, 9/6, etc. However, we can easily show that the same expression also measures the cosine relative error for reduced rationals:

From unreduced rationals to reduced rationals

Let's go back to this expression here:

[math]\displaystyle{ \displaystyle \left| \zeta(s) \right|^2 = \sum_{n,d} \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}} }[/math]

Note that since there's no restriction that n and d be coprime, the "rationals" we're using here don't have to be reduced. So this shows that zeta yields an error metric over all unreduced rationals, but leaves open the question of how reduced rationals are handled. It turns out that the same function also measures the error of reduced rationals, scaled only by a rolloff-dependent constant factor across all edos.

To see this, let's first note that every "unreduced" rational n/d can be decomposed into the product of a reduced rational n/d' and a common factor c/c. Furthermore, note that for any reduced rational n/d', we can generate all unreduced rationals n/d corresponding to it by multiplying it by all such common factors c/c, where c is a strictly positive natural number.

This allows us to change our original summation so that it's over three variables, n′, d′, and c′, where n′ and d′ are coprime, and c is a strictly positive natural number:

[math]\displaystyle{ \displaystyle \left| \zeta(s) \right|^2 = \sum_{n',d',c} \frac{\cos\left(t \ln\left({\tfrac{cn'}{cd'}}\right)\right)}{(cn' \cdot cd')^{\sigma}} }[/math]

Now, the common factor c/c cancels out inside the log in the numerator. However, in the denominator, we get an extra factor of c2 to contend with. This yields

[math]\displaystyle{ \displaystyle \left| \zeta(s) \right|^2 = \sum_{n',d',c} \frac{\cos\left(t \ln\left({\tfrac{n'}{d'}}\right)\right)}{(c^2 \cdot n'd')^{\sigma}} = \sum_{n',d',c} \left[ \frac{1}{c^{2\sigma}} \cdot \frac{\cos\left(t \ln\left({\tfrac{n'}{d'}}\right)\right)}{(n'd')^{\sigma}} \right] }[/math]

Now, since we're still assuming that σ > 1 and everything is absolutely convergent, we can decompose this into a product of series as follows

[math]\displaystyle{ \displaystyle \left| \zeta(s) \right|^2 = \left[ \sum_c \frac{1}{c^{2\sigma}} \right] \cdot \left[ \sum_{n',d'} \frac{\cos\left(t \ln\left({\tfrac{n'}{d'}}\right)\right)}{(n'd')^{\sigma}} \right] }[/math]

Finally, we note that on the left summation we simply have another zeta series, yielding

[math]\displaystyle{ \displaystyle \left| \zeta(s) \right|^2 = \zeta(2\sigma) \cdot \left[ \sum_{n',d'} \frac{\cos\left(t \ln\left({\tfrac{n'}{d'}}\right)\right)}{(n'd')^{\sigma}} \right] }[/math]

[math]\displaystyle{ \displaystyle \frac{\left| \zeta(s) \right|^2}{\zeta(2\sigma)} = \sum_{n',d'} \frac{\cos\left(t \ln\left({\tfrac{n'}{d'}}\right)\right)}{(n'd')^{\sigma}} }[/math]

Now, since we're fixing σ and letting t vary, the left zeta term is constant for all edos. This demonstrates that the zeta function also measures cosine error over all the reduced rationals, up to a constant factor. QED.

Measuring error on harmonics only

So far we have shown the following:

  • Error on prime powers: [math]\displaystyle{ \log\,\left| \zeta(\sigma+it) \right| }[/math]
  • Error on unreduced rationals: [math]\displaystyle{ \left| \zeta(\sigma+it) \right|^2 }[/math]
  • Error on reduced rationals: [math]\displaystyle{ \frac{\left| \zeta(\sigma+it) \right|^2}{\zeta(2\sigma)} }[/math]

Since the second is a simple monotonic transformation of the first, we can see that the same function basically measures both the relative error on just the prime powers, and also on all unreduced rationals, at least in the sense that edos will be ranked identically by both measures. The third function is really just the second function divided by a constant, since we only really care about letting [math]\displaystyle{ t }[/math] vary—we instead typically set [math]\displaystyle{ \sigma }[/math] to some value which represents the weighting "rolloff" on rationals. So, all three of these functions will rank edos identically.

We also note that, above, Gene tended to look at things in terms of the Z(t) function, which is defined so that we have |Z(t)| = |ζ(t)|. So, the absolute value of the Z function is also monotonically equivalent to the above set of expressions, so that any one of these things will produce the same ranking on edos.

It turns out that using the same principles of derivation above, we can also derive another expression, this time for the relative error on only the harmonics—i.e. those intervals of the form [math]\displaystyle{ 1/1, 2/1, 3/1, ... n/1, ... }[/math]. This was studied in a paper by Peter Buch called "Favored cardinalities of scales". The expression is:

Error on harmonics only: [math]\displaystyle{ \mathrm{Re}\left(\zeta(\sigma + it)\right) }[/math]

Note that, although the last four expressions were all monotonic transformations of one another, this one is not—this is the 'real part' of the zeta function, whereas the others were all some simple monotonic function of the 'absolute value' of the zeta function. The results, however, are very similar—in particular, the peaks are approximately to one another, shifted by only a small amount (at least for reasonably-sized edos up to a few hundred).

Relationship to harmonic entropy

The expression

[math]\displaystyle{ \displaystyle{\left| \zeta\left(\frac{1}{2} + it\right) \right|^2 \cdot \overline {\phi(t)}} }[/math]

is, up to a flip in sign, the Fourier transform of the unnormalized Harmonic Shannon Entropy for N = ∞, where φ(t) is the characteristic function (aka Fourier transform) of the spreading distribution and φ(t) denotes complex conjugation.

Note that in the most common case where the spreading distribution is symmetric (as in the case of the Gaussian and Laplace distributions), the characteristic function is purely real and hence the conjugate is unnecessary. In particular, when the spreading distribution is a Gaussian, the characteristic function is also a Gaussian.

More can be found at the page on harmonic entropy, including a generalization to Renyi entropy for arbitrary [math]\displaystyle{ a }[/math].

The matter of sigma: the critical strip, zeta peaks, and Gram points

So long as s ≥ 1, the absolute value of the zeta function can be seen as a relative error measurement. However, the rationale for that view of things departs when s < 1, particularly in the critical strip, when 0 < s < 1. As s approaches the value s = 1/2 of the critical line, the "information content" of the zeta function concerning higher primes increases and it behaves increasingly like a badness measure (or more correctly, since we have inverted it, like a goodness measure.) The quasi-symmetric functional equation of the zeta function tells us that past the critical line the information content starts to decrease again, with 1 − s and s having the same information content; that is, for s > 1/2, 1 − s essentially multiplies the zeta function at s by a fixed, monotonic increasing function. Hence it is the zeta function between s = 1/2 and s = 1, and especially the zeta function along the critical line s = 1/2, which is of the most interest.

Introduction to Gram points

As s > 1 gets larger, the Dirichlet series for the zeta function is increasingly dominated by the 2 term, getting ever closer to simply 1 + 2z, which approaches 1 as s = Re(z) becomes larger. When s ≫ 1 and x is an integer, the real part of zeta is approximately 1 + 2s, and the imaginary part is approximately zero; that is, zeta is approximately real. Starting from s = +∞ with x an integer, we can trace a line back towards the critical strip on which zeta is real. Since when s ≫ 1 the derivative is approximately −ln(2)/2s, it is negative on this line of real values for zeta, meaning that the real value for zeta increases as s decreases. The zeta function approaches 1 uniformly as s increases to infinity, so as s decreases, the real-valued zeta function along this line of real values continues to increase though all real values from 1 to infinity monotonically. When it crosses the critical line where s = 1/2, it produces a real value of zeta on the critical line. Points on the critical line where ζ(12 + ig) are real are called "Gram points", after Jørgen Pedersen Gram. We thus have associated pure-octave edos, where x is an integer, to a value near to the pure octave, at the special sorts of Gram points which corresponds to edos.

Gram points and zeta peaks

Because the value of zeta increased continuously as it made its way from +∞ to the critical line, we might expect the values of zeta at these special Gram points to be relatively large. This would be especially true if −ζ′(z) is getting a boost from other small primes as it travels toward the Gram point. A complex formula due to Bernhard Riemann which he failed to publish because it was so nasty becomes a bit simpler when used at a Gram point. It is named the Riemann–Siegel formula since Carl Ludwig Siegel went looking for it and was able to reconstruct it after rooting industriously around in Riemann's unpublished papers. From this formula, it is apparent that when x corresponds to a good edo, the value of ζ(12 + ig) at the corresponding Gram point should be especially large.

The Z function: a mathematically convenient version of zeta

The absolute value of ζ(1/2 + ig), 1.8 at a Gram point corresponding to an edo is near to a local maximum, but not actually at one. At the local maximum, of course, the partial derivative of ζ(1/2 + it), 1.8 with respect to t will be zero; however this does not mean its derivative there will be zero. In fact, the Riemann hypothesis is equivalent to the claim that all zeros of ζ′(s + it) occur when s > 1/2, which is where all known zeros lie. These do not have values of t corresponding to good edos. For this and other reasons, it is helpful to have a function which is real for values on the critical line but whose absolute value is the same as that of zeta. This is provided by the Z function, which is defined (in terms of the Riemann-Siegel theta function) as:

[math]\displaystyle{ Z(t) = \exp(i \theta(t)) \zeta\left(\frac{1}{2} + it\right) }[/math].

The factor of [math]\displaystyle{ \exp(i \theta(t)) }[/math] simply modifies zeta by a complex phase, and so the absolute value of Z along the real axis is the same as the absolute value of ζ at the corresponding place on the critical line, and the zeros of Z in this strip correspond one to one with the zeros of ζ in the critical strip, and since θ is holomorphic on the strip with imaginary part between −1/2 and 1/2, so is Z. And Z is a real even function of the real variable t, since theta was defined so as to give precisely this property.

Zeta edo lists

Record edos

The prime-approximating strength of an edo can be determined by the magnitude of Z(x). Since a higher |Z(x)| correlates to a stronger tuning, we would like to find a sequence with successively larger |Z(x)|-associated values satisfying some property.

Zeta peak edos

If we examine the increasingly larger peak values of |Z(x)|, we find they occur with values of x such that Z′(x) = 0 near to integers, so that there is a sequence of edos 1, 2, 3, 4, 5, 7, 10, 12, 19, 22, 27, 31, 41, 53, 72, 99, 118, 130, 152, 171, 217, 224, 270, 342, 422, 441, 494, 742, 764, 935, 954, 1012, 1106, 1178, 1236, 1395, 1448, 1578, 2460, 2684, 3395, 5585, 6079, 7033, 8269, 8539, 11664, 14348, 16808, 28742, 34691, 36269, 57578, 58973, 95524, 102557, 112985, 148418, 212147, 241200, … of zeta peak edos. This is listed in the On-Line Encyclopedia of Integer Sequences as OEIS: A117536. Note that these peaks occur close to integer values, but are never exactly located at an integer; this can be interpreted as the zeta function suggesting detuned (stretched or compressed) octaves for the edo in question, similar to the TOP tuning (although the two tunings are in general not the same). As a result, this list can also be thought of as "tempered-octave zeta peak edos."

Zeta peak integer edos

Alternatively (as groundfault has found), if we do not allow octave detuning and instead look at only the record |Z(x)| zeta scores corresponding to exact edos with pure octaves, we get 1, 2, 3, 5, 7, 10, 12, 19, 22, 31, 41, 53, 87, 118, 130, 171, 224, 270, 311, 472, 494, 742, 1065, 1106, 1395, 1578, 2460, 2684, 3566, 4231, 4973, 5585, 8269, 8539, 14124, 14348, 16808, 28742, 30631, 34691, 36269, 57578, 58973, … of zeta peak integer edos. Edos not present in the previous list but present here include 87, 311, 472, 1065, 3566, 4231, 4973, 14124, 30631, … and edos present in the previous list but not present here include 4, 27, 72, 99, 152, 217, 342, 422, 441, 764, 935, 954, 1012, 1178, 1236, 1448, 3395, 6079, 7033, 11664, … with 72's removal perhaps being the most surprising, showing the strength of 53 in that 72 does not improve on 53's peak. This definition may be better for measuring how accurate edos are without detuned octaves, whereas the previous list assumes that the octave is tempered along with all other intervals. This list can thus also be thought of as "pure-octave zeta peak edos."

Absolute zeta peak edos

If we consider that zeta is a measure of relative error (that is, error measured relative to the step size), we realize that plenty of equal temperaments* are excluded simply because, though practically speaking they have great tuning properties, they are not as "efficient" with their number of tones as the last record peak. Arguably what we're interested in is a sequence of edos that generally do increasingly better at tuning JI in terms of lowering the average cent error. Therefore, it suffices to multiply the score by the size of the equal temperament. Surprisingly, the list for s = 1/2 — which is supposedly where high-limit information is maximized — is almost identical to the one for s = 1 — which is the smallest value of s that we can assume to be meaningful without assuming that the analytic continuation preserves the tuning properties we are interested in — so that we have reassurance from the s = 1 list that the s = 1/2 list is meaningful wherever they agree. This is important because surprisingly, the two lists of equal temperament are identical up to 311et, with only one edo, 8edo, omitted from the list for s = 1. This list is 1, 2, 3, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 22, 24, 26, 27, 31, 34, 41, 46, 53, 58, 65, 68, 72, 84, 87, 94, 99, 111, 118, 130, 140, 152, 171, 183, 198, 212, 217, 224, 243, 270, 311, ....

* Note importantly that we speak of "equal temperaments" rather than "edos" because generally a record peak does not correspond to an edo, which can have tangible consequences (a significant example is discussed in the next section).

Extended list of absolute zeta peak edos

If you look at the graph of zeta (for any zeta graph of interest), another issue quickly becomes evident: many equal temperaments of interest fail to have peaks of record height by only small amounts, so that we intuitively want to include them in a more comprehensive list. However, trying to "fix" this issue quickly leads into another issue: how many "nearly record" edos should we include, and why? The smallest alteration we can make is to allow an equal temperament that does better than the second-best-scoring equal temperament so far. But sometimes we have two very strong equal temperaments appear in quick succession, and given the motivation is to find a more comprehensive list anyways, here we'll include any equal temperament that does better than the third-best-scoring equal temperament so far. The motivation for this cutoff is that you intuitively might expect that the three best equal temperaments found so far represent roughly how good we can do in a given range of step sizes, so that they define what is "normal" for that range, that is, it's the heuristic of the "rule of three". Again, the list for s = 1/2 is almost identical to s = 1 for equal temperaments up to 311et, though this time the differences are less trivial: 176et and 202et only appear for s = 1/2, so are put in brackets. The list is 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 22, 24, 26, 27, 29, 31, 34, 36, 38, 39*, 41, 43, 45, 46, 48, 50, 53, 56, 58, 60, 63, 65, 68, 72, 77, 80, 84, 87, 89, 94, 96, 99, 103, 106, 111, 113, 118, 121, 125, 130, 137, 140, 145, 149, 152, 159, 161, 166, 171, (176,) 183, 190, 193, 198, (202,) 212, 217, 224, 229, 239, 243, 248, 255, 270, 277, 282, 289, 301, 311, ....

The equal temperaments added relative to the non-extended list of only things that are records proper are: 6, 8, 11, 13, 16, 21, 29, 36, 38, 39*, 43, 45, 48, 50, 56, 60, 63, 77, 80, 89, 96, 103, 106, 113, 121, 125, 137, 145, 149, 159, 161, 166, (176,) 190, 193, (202,) 229, 239, 248, 255, 277, 282, 289, 301. * 39et is a notable example because 39edo corresponds to a zeta valley, so it's surprising that it would be included here; the reason that it is included is because this is not 39edo, but 39 equal temperament, corresponding to a 3.8 ¢ flat-tempered octave so that it is actually ~39.124edo, that is, it corresponds to the 173rd zeta peak, known by the shorthand 173zpi (where i stands for index). Therefore, this may prove a good testcase for investigating the effects of zeta-based octave-tempering, though given the size of the stretch, the difference is likely to be subtle, but the fact that it "changes zeta's mind" this much is itself interesting. You can also interpret this result differently, which is as evidence that you should not include equal temperaments worse than the third-best-scoring equal temperament so far, given the somewhat dubious inclusion of 39et, however it should be noted that this is more to do with that at the very beginning of the list there aren't many equal temperaments to "beat" so that beating the third-best-scoring equal temperament so far is easy, though arguably this isn't a flaw because people are often more likely to try a smaller equal temperament. It's also perhaps worth noting that 37et almost makes this extended list, but the omission of 37et is much better addressed by no-3's zeta.

Zeta integral edos

Similarly, if we take the integral of |Z(x)| between successive zeros, and use this to define a sequence of increasing values for this integral, these again occur near integers and define an edo. This sequence, the zeta integral edos, goes 2, 5, 7, 12, 19, 31, 41, 53, 72, 130, 171, 224, 270, 764, 954, 1178, 1395, 1578, 2684, 3395, 7033, 8269, 8539, 14348, 16808, 36269, 58973, … This is listed in the OEIS as OEIS: A117538. The zeta integral edos seem to be, on the whole, the best of the zeta function sequences, but the other two should not be discounted; the peak values seem to give more weight to the lower primes, and the zeta gap sequence discussed below to the higher primes.

Zeta gap edos

Finally, taking the midpoints of the successively larger normalized gaps between the zeros of Z leads to a list of zeta gap edos. These are 2, 3, 5, 7, 12, 19, 31, 46, 53, 72, 270, 311, 954, 1178, 1308, 1395, 1578, 3395, 4190, 8539, 14348, 58973, 95524, … Since the density of the zeros increases logarithmically, the normalization is to divide through by the log of the midpoint. These edos are listed in the OEIS as OEIS: A117537. The zeta gap edos seem to weight higher primes more heavily and have the advantage of being easy to compute from a table of zeros on the critical line.

Strict zeta edos

We may define the strict zeta edos to be the edos that are in all four of the above lists. The list of strict zeta edos begins 2, 5, 7, 12, 19, 31, 53, 270, 1395, 1578, 8539, 14348, 58973, ….

This, however, requires that an edo's zeta peak be record-holding with both pure and detuned octaves. It is actually debatable whether or not this constraint is a good idea, as it does not account for tuning tendencies that are skewed sharpward or flatward. If detuned octaves are allowed, the two smallest additional edos that are strict zeta edos would be 72edo and 954edo.

List of record zeta edos

Zeta record edos up to 1000
Edo 1 2 3 4 5 7 10 12 19 22 27 31 41 46 53 72 87 99 118 130 152 171 217 224 270 311 342 422 441 472 494 742 764 935 954
Record
peak
Detuned
octaves
Pure
octaves
Integral
Gap

Anti-record edos

Zeta valley edos

In addition to looking at |Z(x)| maxima, we can also look at |Z(x)| minima for integer values of x. These correspond to zeta valley edos, and we get a list of edos 1, 8, 18, 39, 55, 64, 79, 5941, 8294, … These tunings tend to deviate from p-limit JI as much as possible while still preserving octaves, and can serve as "more xenharmonic" tunings. Keep in mind, however, that the most xenharmonic tunings would not contain octaves at all.

Notice the sudden jump from 79edo to 5941edo. We know that |Z(x)| grows logarithmically on average. If we assume the scores of integer edos are uniformly distributed on the interval [0, c log(x)], the probability for the next edo to have a zeta score less than a given small value is also very small, so we would expect valley edos to be rarer than peak edos. So, it would be more productive to find edos which zeta score is simply less than a given threshold.

Note that "tempered-octave zeta valley edos" would simply be any zero of Z(x).

k-ary-peak edos

This article or section contains multiple idiosyncratic terms. Such terms are used by only a few people and are not regularly used within the community.

Terms: the term "k-ary-peak edos" itself, as well as the names for the different types of k-ary-peak edos. Proposed by Akselai and Budjarn Lambeth.

If we want to find the second-best edos ranked by zeta peaks, then given a full list of zeta peaks, we can remove the successively higher peaks to get another sequence of succesively higher peaks, which correspond to edos called Parker edos.

Parker edos

Named after the Parker square in mathematics, Parker edos may be defined as non-zeta-peak edos with a higher zeta peak than any smaller non-zeta-peak edo. A helpful list for finding an alternative to any given zeta peak edo of similar size and still-okay accuracy, but with different regular temperament properties (e.g. 9 as alternative to 10, 17 as alternative to 19).

6, 8, 9, 14, 15, 17, 24, 34, 46, 58, 65, 77, 87, 111, 140, 183, 243, 301, 311, 460, 472, 525, 571, 581, 814, 836, 882, 1205, …

We can then remove those secondary peaks again to get tertiary-peak edos.

Tertiary-peak edos

Non-zeta-peak edos with a higher zeta peak than any smaller non-zeta-peak or Parker edo.

We can do this as many times as we want, resulting in k-ary-peak edos. The ordinary peak edos are 1-ary (primary)-peak edos, Parker edos are 2-ary (secondary)-peak edos, and so on.

Non-record edos

This article or section contains multiple idiosyncratic terms. Such terms are used by only a few people and are not regularly used within the community.

Terms: the names for the different types of non-record edos. Proposed by Budjarn Lambeth

The following lists of edos are not determined by successively large measured values, they are edos that satisfy some other property relating to zeta peaks instead.

Local zeta peak edos

We may define local zeta peak edos as a generalization of the zeta peak edos as those that do not necessarily have successively higher zeta peaks but simply have a higher zeta peak than the edos on either side of them. This is a helpful list for finding edos that approximate primes well (but are not necessarily the best at doing so) for their size, or for finding edos in size ranges that lack any record-holding zeta edos (e.g. between 60 and 70 tones).

5, 7, 10, 12, 15, 17, 19, 22, 24, 27, 29, 31, 34, 36, 38, 41, 43, 46, 48, 50, 53, 56, 58, 60, 63, 65, 68, 72, 75, 77, 80, 82, 84, 87, 89, 91, 94, 96, 99, …

Local zeta peak integer edos

Similarly, we may define local zeta peak integer edos as a generalization of the zeta peak integer edos, i.e. those that have a higher zeta peak than the edos on either side of them with pure octaves:

3, 5, 7, 10, 12, 15, 17, 19, 22, 24, 26, 29, 31, 34, 36, 41, 43, 46, 48, 50, 53, 56, 58, 63, 65, 68, 70, 72, 74, 77, 80, 82, 84, 87, 89, 94, 96, 99, …

Edos not present in the previous list but present here include 3, 26, 70, 74, …

Edos present in the previous list but not present here include 27, 38, 60, 75, 91, …

Local anti-zeta edos

We may define anti-zeta edos as the opposite of zeta peak and local zeta edos (i.e. those with a lower zeta peak than the edos on either side of them). This is helpful for finding edos that force the use of methods other than traditional concordant harmony, or for composers seeking a challenge to inspire creativity.

6, 8, 11, 13, 16, 18, 20, 23, 25, 28, 30, 33, 35, 37, 40, 42, 44, 47, 49, 52, 54, 57, 59, 61, 64, 66, 69, 71, 73, 76, 78, 81, 83, 86, 88, 90, 92, 95, 97, …

Indecisive edos

Finally, indecisive edos can be defined as edos which are neither local zeta, nor anti-zeta. These tunings are more restrictive than local zeta edos, but not as far off the deep end as anti-zeta edos. They might narrow down the range of compositional choices available so as to be not so many to promote indecision, but not so few as to promote frustration.

9, 14, 21, 26, 32, 39, 45, 51, 55, 62, 67, 70, 74, 79, 85, 93, 98, …

Further lists

See the record lists.

Optimal octave stretch

Another use for the Riemann zeta function is to determine the optimal tuning for an edo, meaning the optimal octave stretch. This is because the zeta peaks are typically not integers. The fractional part can give us the degree to which the generator diverges from what you would need to have the octave be a perfect 1200 cents.

For all edos 1 through 100, and for a list of successively higher zeta peaks, taken to five decimal places, see table of zeta-stretched edos.

Zeta peak index

These octave-stretched edos are not the only tunings which can be produced from zeta peaks. They are only one type of tuning within a larger family of equal-step tunings called zeta peak indices. They have their own article here, with a table of the first 500 or so: zeta peak index (ZPI).

Removing primes

An Euler product formula for the Riemann zeta function can be easily derived:

[math]\displaystyle{ \displaystyle{ \zeta(s) = \prod_p \left(1 - p^{-s}\right)^{-1} } }[/math]

where the product is over all primes p. The product converges for values of s with real part greater than one, while at s = 1 it diverges to infinity. We may remove a finite list of primes from consideration by multiplying ζ(s) by the corresponding factors (1 − ps) for each prime p we wish to remove. After we have done this, the smallest prime remaining will dominate peak values for s with large real part, and as before we can track these peaks backwards and, by analytical continuation, into the critical strip. In particular if we remove the prime 2, (1 − 2s)ζ(s) is now dominated by 3, and the large peak values occur near equal divisions of the "tritave", ie 3.

Along any line of constant [math]\displaystyle{ \sigma }[/math], it can be shown that:

[math]\displaystyle{ \displaystyle{ \left| 1 - p^{-\sigma - it} \right| = \sqrt{1 + \frac{1}{p^{2\sigma}} - \frac{2 \cos(t \ln p)}{p^\sigma}} } }[/math];

in particular, on the critical line,

[math]\displaystyle{ \displaystyle{ \left| 1 - p^{-\frac{1}{2} - it} \right| = \sqrt{1 + \frac{1}{p} - \frac{2 \cos(t \ln p)}{\sqrt{p}}} } }[/math].

Multiplying the Z-function by this factor of adjustment gives a Z-function with the prime p removed from consideration. Zeta peak and zeta integral tunings may then be found as before. Note that multiplying this factor is technically only accurate for sums whose result is related to the Z function rather than the real part of the zeta function.

For example, if we want to find zeta peak EDTs (division of the 3rd harmonic, or "tritave")—noting that here we must substitute [math]\displaystyle{ t = \frac{2\pi x}{\ln(3)} }[/math] instead of [math]\displaystyle{ \frac{2\pi x}{\ln(2)} }[/math]—in the no-twos subgroup, our modified Z function is:

[math]\displaystyle{ \displaystyle Z\left(\frac{2\pi}{\ln(3)}x\right)\sqrt{\frac{3}{2}-\sqrt{2}\cos\left(\frac{2\pi\ln(2)}{\ln(3)}x\right)} }[/math].

Removing 2 leads to increasing adjusted peak values corresponding to edts into 4, 7, 9, 13, 15, 17, 26, 32, 39, 56, 69, 75, 88, 131, 245, 316,… parts. We can also compare zeta peak EDTs with pure and tempered tritaves just like zeta peak edos. A striking feature of this list is the appearance not only of 13edt, the Bohlen–Pierce division of the tritave, but the multiples 26 and 39 also.

Open problems

  1. Are there metrics similar to zeta metrics, but for edos' performance at approximating arbitrary delta-rational chords?

Further information

Links