Petty’s Notebook

Digit-Collision Energy and Musical Tuning

About this paperZenodo
Cite this paper

A. S. Petty, Digit-Collision Energy and Musical Tuning, DOI: 10.5281/zenodo.24602182.

Abstract

Two pure sine tones a fifth apart have powers that add over a common period. A bowed string in ideal steady motion exerts a sawtooth force on the bridge. When two sawtooth tones start together at a fifth, the lower note’s third partial reinforces the upper note’s second. For unit sawtooths at the first p−1p-1 harmonics starting together, a prime base pp gives p2p^2 equally spaced samples of their sum. Each sample equals an excess of carries at steps marked by two equal digits. The sum of the squared samples is the digit-collision energy. How much of a chord’s power stays within a tuning lattice? For equal-amplitude tones through harmonic NN, groups generated by octaves and fifths retain more than their limiting share at every finite cutoff. Admitting just major thirds gives five-limit groups. In a thirty-tone chord they retain 89.7789.77 per cent of the power over the period and 45.4045.40 per cent within 1/301/30 of the onset. Averaging power over all choices of group polarity gives both readings. As NN grows, the grouped power spreads uniformly. The full chord assigns limiting mass ζ(3)/(ζ(2)d3)\zeta(3)/(\zeta(2)d^3) to each reduced phase of denominator dd. At N=p−1N=p-1, sampling raises the tuning share to first order by 1/N1/N of its limiting value.

November 27, 2026
2020 Mathematics Subject Classification: 00A65, 11A63, 11K38, 42A16
Key words and phrases: digit collisions, just intonation, harmonic distance, sawtooth waves, harmonic series, energy concentration

A perfect fifth in the harmonic series

In one period of a perfect fifth, the lower note completes two cycles and the upper note three. The earlier alignment study recovers this interval from base-twelve digits. For a fixed denominator nn, it counts the fractions k/nk/n, 1≤k<n1\le k<n, whose expansions terminate or eventually match the digits of 1/n1/n in the same positions. For denominators 2222 and 3333, the two proportions fall short of 2/112/11. As the denominators double together, the ratio of the two shortfalls tends to 3/23/2 .

How much does that fifth contribute when the two notes sound together? A bowed string in ideal Helmholtz motion exerts a force on the bridge that rises steadily and drops once per cycle . For two unit sawtooth tones a fifth apart, the separate mean squares add to 2/32/3. Starting them together gives their sum a mean square of 7/97/9. The extra 1/91/9 comes from the partials the notes share and persists when both notes rise an octave.

The first four harmonics give the chord 1:2:3:41:2:3:4, with the fifth between its two middle voices. At each of twenty-five equally spaced phases of a period, the four sawtooth amplitudes add before the result is squared. The sum of those squares is the digit-collision energy in base five.

The matching digit pairs 00,11,22,33,4400,11,22,33,44 mark five of the twenty-five steps in base five. A walk through the words in order carries once, on passing from 4444 to 0000. The marked steps therefore collect one carry against a proportional share of 1/51/5. Their excess is 4/54/5. Step size one corresponds to phase 6/256/25 of the period, where the four tones give (−13−1+11+23)/25=4/5(-13-1+11+23)/25=4/5. This sample contributes 16/2516/25 to the energy. Over all twenty-five phases the squares sum to 4848, so the chord’s sampled mean square is 48/2548/25.

Among the first NN harmonics of an equal-amplitude sawtooth chord, the fifth occurs at 2:32:3, again at 4:64:6, and at every transposition 2t:3t2t:3t through the cutoff. A reduced interval b/ab/a, with a<ba<b, occurs ⌊N/b⌋\lfloor N/b\rfloor times. Each occurrence has the same weight. The fifth’s share of the chord also depends on how often it occurs.

Squaring the whole chord includes every pair of tones. A second reading adds the powers of the tuning groups, each sounded as a chord in its own right. A pair contributes to that reading only if its frequency ratio belongs to the chosen tuning. For Pythagorean tuning, 2:32:3 stays together and 4:54:5 falls into two groups. In a recording of all the tones, reversing whole groups between takes and averaging over the sign choices gives the second reading. The same takes can be measured over a whole period or in a short window on either side of the common reset.

Let xx be phase on the unit circle T=R/Z\mathbb T=\mathbb{R}/\mathbb{Z}, with length measure dxdx of total mass one. In a period of duration TT, phase xx denotes elapsed time xTxT. Our sawtooth is f(x)=2{x}−1f(x)=2\{x\}-1 between integers, with value zero at each reset, the jump from 11 to −1-1. At the common onset, x=0x=0, all the tones reset together. Harmonic hh is the entire tone f(hx)f(hx); its sine components are its partials. We write BN(x)=∑h=1Nf(hx),J(N)=∫TBN(x)2 dx.B_N(x)=\sum_{h=1}^N f(hx),\qquad J(N)=\int_{\mathbb T}B_N(x)^2\,dx . In prime base pp, step size aa gives phase ((p+1)a mod p2)/p2((p+1)a\bmod p^2)/p^2 of the chord with p−1p-1 tones (Section 5). Each phase occurs once. Dividing the digit-collision energy EpE_p by p2p^2 gives the mean square on this grid. The integral J(p−1)J(p-1) gives the mean square over the continuous period. A common filter of unit gain at every frequency preserves the whole-cycle mean squares of both mixes by Parseval’s identity. Even a common time delay moves their readings in a fixed phase window. Predicting sound at a microphone would require the intervening response.

Half a period after the start, every even harmonic resets together. Every odd one passes through the middle of a ramp. As NN grows, the wave beside this half turn has half the height and half the width of the wave beside the onset. Its squared area is one eighth as large. How much of that area is already present when the tuning groups are squared separately?

The weight of a just interval

The third partial of the lower tone of a fifth coincides with the second partial of the upper tone. Their next coincident partials are the sixth and fourth. Starting the sawtooths together puts every such pair in phase. Summing over those coincidences accounts for the 1/91/9 in the opening example.

At a reduced ratio b/ab/a, the two harmonic indices have the form ta,tbta,tb. In the sine series of ff the coefficient of the nnth partial is −2/(πn)-2/(\pi n). The coincident partials of these two tones have indices bjbj in the lower voice and ajaj in the upper voice. Orthogonality gives, for every positive integer tt, ∫Tf(tax)f(tbx) dx=2π2ab∑j≥11j2=13ab.\int_{\mathbb T} f(tax)f(tbx)\,dx =\frac{2}{\pi^2ab}\sum_{j\ge1}\frac1{j^2}=\frac1{3ab}. In general ∫Tf(hx)f(jx) dx=(h,j)2/(3hj)\int_\mathbb Tf(hx)f(jx)\,dx=(h,j)^2/(3hj), where (h,j)(h,j) is the greatest common divisor. Franel stated this identity and Landau gave a proof .

Dividing (1) by the product of the two root-mean-square amplitudes gives 1/(ab)1/(ab). For the fifth this overlap is 1/61/6, and for the just major third it is 1/201/20. Raising both voices by an octave preserves their overlap. Raising the upper voice alone changes 3/23/2 to 3/13/1 and the overlap to 1/31/3.

The overlap is 2−dH2^{-d_H} for Tenney’s harmonic distance dH=log⁡2(ab)d_H=\log_2(ab) . It can also be compared with the swing in power as the upper tone moves through a cycle.

Proposition 1 (Beat depth). Let a≤ba\le b be coprime positive integers and put B2(t)=t2−t+1/6B_2(t)=t^2-t+1/6. For every real θ\theta, ∫T(f(ax)+f(bx+θ))2 dx=23+4ab B2({aθ}).\int_{\mathbb T}\bigl(f(ax)+f(bx+\theta)\bigr)^2\,dx =\frac23+\frac{4}{ab}\,B_2(\{a\theta\}). The energy is greatest when the two tones share a reset, where it equals 2/3+2/(3ab)2/3+2/(3ab). It is least when {aθ}=1/2\{a\theta\}=1/2, where it equals 2/3−1/(3ab)2/3-1/(3ab). The difference is 1/(ab)1/(ab).

Proof. Partial nn of the first tone meets partial mm of the second only if na=mbna=mb, that is, n=bkn=bk and m=akm=ak. Since ∫Tsin⁡(2πkabx)sin⁡(2πkabx+2πkaθ) dx=12cos⁡(2πkaθ),\int_\mathbb T\sin(2\pi kabx)\sin(2\pi kabx+2\pi ka\theta)\,dx =\tfrac12\cos(2\pi ka\theta), the cross term is 2∫Tf(ax)f(bx+θ) dx=4π2ab∑k≥1cos⁡(2πkaθ)k2=4ab B2({aθ}),2\int_{\mathbb T}f(ax)f(bx+\theta)\,dx =\frac{4}{\pi^2ab}\sum_{k\ge1}\frac{\cos(2\pi ka\theta)}{k^2} =\frac{4}{ab}\,B_2(\{a\theta\}), by the Fourier series ∑k≥1cos⁡(2πkt)/k2=π2B2({t})\sum_{k\ge1}\cos(2\pi kt)/k^2=\pi^2B_2(\{t\}). On [0,1][0,1] the polynomial B2B_2 has maximum 1/61/6 at the ends and minimum −1/12-1/12 at 1/21/2. The tones share a reset exactly when aθa\theta is an integer. ◻

At unison the extremes are 4/34/3 and 1/31/3, so the swing is one. For positive amplitudes A,BA,B the mixed term gains a factor ABAB, giving swing AB/(ab)AB/(ab) against ABAB at unison. As a percentage of the unison swing this is 100/(ab)100/(ab). tabulates the influence of mistuning a violin-tone interval, giving 5050 for the octave and 16.716.7 for the fifth. gives the formula and points out the rounding exception at 5:75:7, printed as 2.82.8 where 100/35=2.857…100/35=2.857\ldots. The phase sweep derives the relative weights for the ideal sawtooth. The aligned excess 2AB/(3ab)2AB/(3ab), the swing AB/(ab)AB/(ab) and the normalized overlap 1/(ab)1/(ab) measure different features of the same pair.

For a genuinely mistuned fifth the relative phase changes during the measurement. Let the upper frequency be b+δb+\delta. In period nn its starting offset is θn=θ0+nδ\theta_n=\theta_0+n\delta, so the measured power is Mn=∫01[f(au)+f(bu+θn+δu)]2 du.M_n=\int_0^1 [f(au)+f(bu+\theta_n+\delta u)]^2\,du . If ∣δ∣≤1|\delta|\le1, this differs from the frozen-phase power of Proposition 1 by at most 12∣δ∣12|\delta|. Indeed the smooth change of the second ramp has integrated absolute value at most ∣δ∣|\delta|. Crossing its reset costs at most two on a set of length at most ∣δ∣|\delta|, since bu+θnbu+\theta_n is uniform modulo one. The sum of the two combined amplitudes in the difference of squares has absolute value at most four. Thus a slow mistuning gives a swing approaching 1/(ab)1/(ab). During one beat the starting phases come within ∣δ∣|\delta|, modulo 1/a1/a, of both extrema. The bbth partial of the lower tone has frequency abab. The aath partial of the upper tone has frequency ab+aδab+a\delta. Their beat rate is exactly a∣δ∣a|\delta| cycles per fundamental period. The successive power readings follow the frozen-phase curve to the accuracy just proved. For a fifth with δ=1/100\delta=1/100 and θ0=0\theta_0=0, the partials have completed one relative turn after fifty periods. The frozen powers then agree, while integration of the two ramps gives M0−M50=101/92450M_0-M_{50}=101/92450. measured the detection of mistuning in complex-tone fifths and major thirds by varying beat frequency and level variation separately.

Changing the timbre changes the interval weight. If the partials of each tone have amplitudes proportional to n−sn^{-s}, s>1/2s>1/2, and begin in phase, the same calculation gives the overlap (ab)−s=2−sdH(ab)^{-s}=2^{-sd_H}. A square wave has only odd partials. Its overlap is 1/(ab)1/(ab) when aa and bb are both odd and zero otherwise, so that an octave of square waves shares no energy. The sawtooth is the case s=1s=1 with every partial present.

A chord of several tones started together has as its energy the sum of the energies of its tones and twice the sum of its pairwise terms (1). The just major triad 4:5:64:5:6 has energy 1+2(1/18+1/60+1/90)=7/61+2(1/18+1/60+1/90)=7/6. The just minor triad 10:12:1510:12:15 is made of the same three intervals and has the same energy. Pairwise weights cannot tell the two apart. Section 4 returns to them.

The share of a tuning lattice

Harmonics 28,35,4228,35,42 form a just major triad in the proportions 4:5:64:5:6. Its outer voices form a perfect fifth. If octaves and fifths generate the allowed intervals, the outer voices are added together and the middle voice is measured separately. Admitting the just major third 5/45/4 brings the middle voice into the same group. Both measurements use all three tones. The tuning determines which amplitudes meet before squaring.

Let PP be a finite set of primes and let ΛP\Lambda_P be the set of positive integers whose prime factors belong to PP, including 11. These are the bb-supported integers of for any base bb with prime support PP, and their ratios are the intervals of the tuning lattice generated by PP. The primes 2,32,3 give Pythagorean tuning and 2,3,52,3,5 give five-limit just intonation . Two harmonic indices belong to the same group when both terms of their reduced frequency ratio belong to ΛP\Lambda_P. Thus 28,35,4228,35,42 form a single five-limit group even though all three indices are divisible by 77.

The same grouping applies to the full chord through harmonic NN. Table 1 gives the three voices’ energy over their common period alongside each tuning’s share of the full chord at two finite cutoffs and in the limit. Both the weight of an interval and the frequency of its occurrence enter the last column.

Separate group powers. The triad column gives whole-cycle energy. The next two columns give percentages of the full NN-tone chord. The last is the limiting percentage.
Tuning primes 4:5:64:5:6 N=16N=16 N=30N=30 Limit
22, octaves 11 66.44 61.55 55.5655.56
2,32,3, Pythagorean 10/910/9 84.25 80.32 73.0873.08
2,3,52,3,5, five-limit 7/67/6 92.69 89.77 82.1382.13
2,3,5,72,3,5,7 7/67/6 97.27 94.90 87.7687.76
2,3,5,7,112,3,5,7,11 7/67/6 98.73 96.64 90.4290.42

The percentages use the energy of the full chord as their denominator. Each contains the individual tone powers, whose total is N/3N/3. The additional power within the groups depends on which pairs of distinct tones the tuning admits.

There is a way to measure the two-group reading with the full triad sounding in each take. Let uu be the sum of the outer voices and vv the middle voice. Record u+vu+v, then reverse the polarity of the middle voice and record u−vu-v, with the same onset. At every phase the average of the two squares is u2+v2u^2+v^2. For any finite number of groups, averaging over all choices of group polarity gives the sum of their squares in exactly the same way. Each product between two different groups occurs equally often with either sign. This measurement uses the same pitches, amplitude magnitudes and reset times as the original chord.

If each voice instead starts at an independent uniform phase, its mean at every time is zero. Averaging the full squared signal over these starts removes every mixed product and leaves N/3N/3. The polarity experiment keeps the relative timing within each group.

Each occurrence of the same interval b/ab/a through cutoff NN contributes the same mean power. Its location in the cycle depends on the transposition. The product f(tax)f(tbx)f(tax)f(tbx) repeats tt times. If tt does not divide the nonzero integer mm, the contributions from the tt repetitions cancel, so the Fourier coefficient at mm is zero. Thus only finitely many tt contribute at a fixed m≠0m\ne0, while the mean in (1) contributes at every t≤N/bt\le N/b. It follows that, when tested against any continuous function of phase, 1N∑t≤N/bf(tax)f(tbx) dx ⟶ dx3ab2.\frac1N\sum_{t\le N/b} f(tax)f(tbx)\,dx \ \longrightarrow\ \frac{dx}{3ab^2}. Indeed the total variation norms of the measures on the left are at most ⌊N/b⌋/N\lfloor N/b\rfloor/N, so convergence on Fourier modes suffices. The same argument with a=b=1a=b=1 gives dx/3dx/3 for the squared individual tones.

A fifth and the ratio 6:16:1 each add 1/91/9 to the cycle power of the pair. A fifth occurs once per three harmonics in the limit and 6:16:1 once per six. Counting the transpositions gives their distinct contributions 1/271/27 and 1/541/54 per harmonic.

Corollary 2 (Energy within a tuning lattice). Let PP be a fixed finite set of primes. Each harmonic index is uniquely kuku, with u∈ΛPu\in\Lambda_P and kk divisible by no prime in PP. For the equal-amplitude chord put LN,P(x)=1N∑k≤Nq∤k ∀q∈P(∑u∈ΛPku≤Nf(kux))2.L_{N,P}(x)=\frac1N\sum_{\substack{k\le N\\q\nmid k\ \forall q\in P}} \left(\sum_{\substack{u\in\Lambda_P\\ku\le N}} f(kux)\right)^2 . Then LN,P(x) dxL_{N,P}(x)\,dx tends weakly to βP dx\beta_P\,dx, where βP=13+23∑a,b∈ΛPa<b, (a,b)=11ab2.\beta_P=\frac13+\frac23 \sum_{\substack{a,b\in\Lambda_P\\a<b,\ (a,b)=1}}\frac1{ab^2}.

Proof. Two indices lie in the same group exactly when both terms of their reduced ratio are in ΛP\Lambda_P. On expanding the squares, all diagonals therefore occur. For a fixed coprime a<ba<b in ΛP\Lambda_P the two orders of the pair have limiting density 2/(3ab2)2/(3ab^2), by (2). The total variation norm of their signed measure at cutoff NN is at most 2⌊N/b⌋/N≤2/b2\lfloor N/b\rfloor/N\le2/b, since ∣f∣≤1|f|\le1. These bounds are summable over the entire lattice. Indeed ∑a,b∈ΛPa<b1b≤(∑u∈ΛPu−1/2)2=∏q∈P(1−q−1/2)−2<∞.\sum_{\substack{a,b\in\Lambda_P\\a<b}}\frac1b \le \left(\sum_{u\in\Lambda_P}u^{-1/2}\right)^2 =\prod_{q\in P}(1-q^{-1/2})^{-2}<\infty . This permits passage to the limit through all pairs. The diagonal supplies the remaining 1/31/3. ◻

With octaves alone the distinct reduced pairs are (1,2j)(1,2^j) for j≥1j\ge1. They give β{2}=1/3+(2/3)∑j≥14−j=5/9\beta_{\{2\}}=1/3+(2/3)\sum_{j\ge1}4^{-j}=5/9. For the Pythagorean and five-limit lattices the bounds are 0.73081252<β{2,3}<0.73081253,0.82125644<β{2,3,5}<0.82125645.\begin{aligned} 0.73081252 &< \beta_{\{2,3\}} < 0.73081253,\\ 0.82125644 &< \beta_{\{2,3,5\}} < 0.82125645 . \end{aligned} The calculation runs over the members bb of ΛP\Lambda_P up to 101010^{10} in increasing order. Each bb contributes 2/(3b2)2/(3b^2) times the sum of 1/a1/a over earlier members coprime to bb. For a cutoff BB, the omitted sum is at most 23B(∑u∈ΛPu−1)2=23B∏q∈P(1−1/q)−2.\frac{2}{3B}\left(\sum_{u\in\Lambda_P}u^{-1}\right)^2 =\frac{2}{3B}\prod_{q\in P}(1-1/q)^{-2}. The same computation gives 0.87760.8776 when the prime 77 is admitted and 0.90420.9042 with 77 and 1111. Extending Pythagorean tuning to five-limit just intonation therefore adds about nine percentage points of limiting energy. The prime 77 adds under six more and the prime 1111 under three. The bound in the proof is not uniform in PP, and the corollary concerns a fixed lattice. In the limit each of these measurements distributes its energy uniformly through the cycle.

Theorem 3 (A lower bound for finite chords). Let PP be any of the five tuning lattices in Table 1, and set JP(N)=N∫TLN,P dxJ_P(N)=N\int_{\mathbb T}L_{N,P}\,dx. For the first NN equal sawtooth tones started together, JP(N)J(N)>βP(N≥2).\frac{J_P(N)}{J(N)}>\beta_P\qquad(N\ge2). The constant is sharp.

Proof. An interval with reduced indices a<ba<b occurs ⌊N/b⌋\lfloor N/b\rfloor times. Its two orders contribute 2/(3ab)2/(3ab) at each transposition by (1). Including the individual tone powers gives J(N)N=13∑a,b≥1(a,b)=1⌊N/max⁡(a,b)⌋Nab ⟶ 13∑a,b≥1(a,b)=11abmax⁡(a,b)=1.\frac{J(N)}N=\frac13\sum_{\substack{a,b\ge1\\(a,b)=1}} \frac{\lfloor N/\max(a,b)\rfloor}{Nab} \ \longrightarrow\ \frac13\sum_{\substack{a,b\ge1\\(a,b)=1}} \frac{1}{ab\max(a,b)}=1 . Here Hn=∑j=1n1/jH_n=\sum_{j=1}^n1/j and ζ(s)=∑n≥1n−s\zeta(s)=\sum_{n\ge1}n^{-s} for s>1s>1. The unrestricted series is 2∑n≥1Hn/n2−ζ(3)=3ζ(3)2\sum_{n\ge1}H_n/n^2-\zeta(3)=3\zeta(3). The Euler sum follows by evaluating ∑m,n≥11/(mn(m+n))=∫01log⁡2(1−t) dt/t=2ζ(3)\sum_{m,n\ge1}1/(mn(m+n))=\int_0^1\log^2(1-t)\,dt/t =2\zeta(3). Removing the common factor divides the unrestricted sum by ζ(3)\zeta(3). The same convergent series bounds the terms at each cutoff, which justifies the limit. Replacing the number of transpositions by N/bN/b leaves its fractional part {N/b}=N/b−⌊N/b⌋\{N/b\}=N/b-\lfloor N/b\rfloor. Summing over the intervals gives the cutoff identity of , D(N):=N−J(N)=23∑a<b(a,b)=1{N/b}ab.D(N):=N-J(N)=\frac23\sum_{\substack{a<b\\(a,b)=1}}\frac{\{N/b\}}{ab}. Restrict the sum to a,b∈ΛPa,b\in\Lambda_P to get NβP−JP(N)N\beta_P-J_P(N). At integer NN, {N/b}≤1−1/b\{N/b\}\le1-1/b. Summing gives 0≤NβP−JP(N)≤UP−(βP−1/3),UP=13(∏ℓ∈Pℓ+1ℓ−1−1).0\le N\beta_P-J_P(N)\le U_P-(\beta_P-1/3),\quad U_P=\frac13\left(\prod_{\ell\in P}\frac{\ell+1}{\ell-1}-1\right). Indeed either member of a coprime pair may carry a power of ℓ\ell; the local sum for the weight 1/(ab)1/(ab) is 1+2/(ℓ−1)1+2/(\ell-1).

A lower bound for D(N)D(N) comes from the pairs a≤N<ba\le N<b. Each successive block of aa integers beyond NN contains φ(a)\varphi(a) integers coprime to aa. The reciprocal square of each of those integers is at least the reciprocal square of the right endpoint. Summing the endpoint values and comparing with the integral from 11 to infinity of (N+at)−2(N+at)^{-2} gives D(N)≥T(N):=23∑a≤Nφ(a)a2NN+a.D(N)\ge T(N):=\frac23\sum_{a\le N}\frac{\varphi(a)}{a^2} \frac{N}{N+a}. This lower bound increases with NN. At M=32768M=32768 it exceeds 439/100439/100. For each of the five lattices, the bounds below yield βP(1+439/100)>UP+1/3\beta_P(1+439/100)>U_P+1/3. Equation (6) therefore gives JP(N)>βPJ(N)J_P(N)>\beta_P J(N) for every N≥MN\ge M.

For 2≤n<M2\le n<M use the integer scale S=1012S=10^{12}. For a set of indices AA (all integers, or ΛP\Lambda_P) form zb(A)=1b∈A⌊1b∑a<b, a∈A(a,b)=1⌊S/a⌋⌋,KA(n)=Sn+2∑b≤n⌊n/b⌋zb(A).z_b(A)=\mathbf1_{b\in A} \left\lfloor\frac1b\sum_{\substack{a<b,\ a\in A\\(a,b)=1}} \lfloor S/a\rfloor\right\rfloor,\qquad K_A(n)=Sn+2\sum_{b\le n}\lfloor n/b\rfloor z_b(A). Writing K(n)K(n) for the unrestricted case, we have K(n)≤3SJ(n)<K(n)+64nK(n)\le3SJ(n)<K(n)+64n for n<Mn<M. The two roundings lose less than two units for each bb, and ∑b≤n⌊n/b⌋≤n(1+log⁡n)<16n\sum_{b\le n}\lfloor n/b\rfloor\le n(1+\log n)<16n. Likewise KΛP(n)≤3SJP(n)K_{\Lambda_P}(n)\le3SJ_P(n). For each lattice the integer hh satisfies h−1<105βP<hh-1<10^5\beta_P<h. The series of Corollary 2 through b=107b=10^7, together with its tail bound, determines it. Write mPm_P for the minimum of 105KΛP(n)−(h+10)(K(n)+64n)(2≤n<M).10^5 K_{\Lambda_P}(n)-(h+10)(K(n)+64n) \qquad (2\le n<M). Each column records the calculation for one lattice. max⁡P235711h5555673082821268776190425⌊mP/1015⌋12280533628\begin{array}{c|rrrrr} \max P & 2 & 3 & 5 & 7 & 11\\ h & 55556 & 73082 & 82126 & 87761 & 90425\\ \lfloor m_P/10^{15}\rfloor & 122 & 80 & 53 & 36 & 28 \end{array} In the computation of each minimum, 2zb(A)2z_b(A) contributes to the increment at every multiple of b<Mb<M. Each increment also contains SS. Their running sums give the values used in the minimum. For T(M)T(M), rounding each summand down to a multiple of 1/S1/S gives 4.3978435587114.397843558711. Each mPm_P is positive, so JP(n)>βPJ(n)J_P(n)>\beta_P J(n) throughout the finite range as well. Corollary 2 and (3) give JP(N)/J(N)→βPJ_P(N)/J(N)\to\beta_P, proving sharpness. The supplementary file tuning_floor.c reproduces all five integer margins, the enclosures for βP\beta_P used here and the lower bound for T(M)T(M). ◻

At N=1N=1 the ratio is one in every group partition. The finite floor uses equal amplitudes, and the approach to it can reverse direction. The Pythagorean share rises from 80.3280.32 to 80.8680.86 per cent between thirty and thirty-two tones.

Energy at rational phases of the common period

In the opening fifth both voices read zero at half a period. One is jumping there and the other is crossing the midpoint of a ramp. A sample at that instant cannot distinguish the two events. An integral over a small neighbourhood includes the waves on either side. For the full equal-amplitude chord the energy near a reduced phase a/da/d has limiting mass ζ(3)/(ζ(2)d3)\zeta(3)/(\zeta(2)d^3). The denominator fixes the weight even when the fraction denotes a time at which the chord itself reads zero.

There are two ways to total this energy. One can integrate each pair of tones over the cycle, or integrate the combined wave on short arcs around the rational phases. The agreement of these totals will account for all the mass, including when the upper harmonics taper off.

Set e(y)=exp⁡(2πiy)\mathrm e(y)=\exp(2\pi i y). Let a fixed real amplitude envelope ww of bounded variation on [0,1][0,1] give the coefficients ch=w(h/N),FN(x)=∑h=1Nchf(hx).c_h=w(h/N),\qquad F_N(x)=\sum_{h=1}^N c_h f(hx). Equal amplitudes are the case w=1w=1, where FN=BNF_N=B_N. The energy on an arc II is ∫IFN(x)2 dx\int_I F_N(x)^2\,dx. We divide by NN to compare successive cutoffs. Weak convergence means that the reading obtained with any fixed continuous weight on phase converges, for instance one that tapers to zero at the ends of an arc. Write δx\delta_x for a unit point mass at xx.

Theorem 4 (Energy at rational phases). Let ν=ζ(3)ζ(2)∑d≥11d3∑0≤a<d(a,d)=1δa/d.\nu=\frac{\zeta(3)}{\zeta(2)} \sum_{d\ge1}\frac{1}{d^3} \sum_{\substack{0\le a<d\\(a,d)=1}}\delta_{a/d}. For equal amplitudes, the normalized energy measure BN2 dx/NB_N^2\,dx/N tends weakly to ν\nu. For an envelope ww of bounded variation put Gw(s)=∫01w(u)f(su) du,Ew=ζ(2)ζ(3)∫R∣Gw∣2.G_w(s)=\int_0^1 w(u)f(su)\,du,\qquad E_w=\frac{\zeta(2)}{\zeta(3)}\int_{\mathbb{R}}|G_w|^2 . Then FN2 dx/NF_N^2\,dx/N tends weakly to EwνE_w\nu. Here E1=1E_1=1, and Ew>0E_w>0 unless ww is zero almost everywhere.

Proof. The profile at a reset. For w=1w=1, integrate the linear pieces of ff from zero to ss to obtain G1(s)=−{s}(1−{s})s(s≠0),G1(0)=0.G_1(s)=-\frac{\{s\}(1-\{s\})}{s}\quad(s\ne0),\qquad G_1(0)=0. On 0<s<10<s<1 the first fold is s−1s-1. For other choices of ww the shape changes. The powers of the denominator come from the same change of scale. For equal amplitudes proved this local limit uniformly on bounded intervals in ss. His sawtooth has half our amplitude and takes its right-hand value at a jump. Doubling his profile gives G1(s)G_1(s) for s≠0s\ne0. At the centre its value is −1-1, while the midpoint convention gives G1(0)=0G_1(0)=0. We need a local estimate that also allows the amplitudes to vary and change sign. Put M=sup⁡∣w∣M=\sup|w|, V=Var(w)V=\mathop{\mathrm{Var}}(w). At a reduced rational a/da/d we have, for N≥dN\ge d and real ss, ∣FN ⁣(ad+sNd)−NdGw(s)∣≤(V+4M)d+4M∣s∣.\left|F_N\!\left(\frac ad+\frac{s}{Nd}\right) -\frac NdG_w(s)\right|\le (V+4M)d+4M|s|. Indeed, group the summands by h mod dh\bmod d. With u=h/Nu=h/N, the function in residue rr is w(u)f(ra/d+us/d)w(u)f(ra/d+us/d). Its supremum is at most MM and its variation is at most V+M(2+4∣s∣/d)V+M(2+4|s|/d). The rectangle rule with spacing d/Nd/N costs this variation and at most two end terms of size MM after rescaling. The sum of the dd integrands equals w(u)f(us)w(u)f(us). Indeed ∑j=0d−1{(v+j)/d}=(d−1)/2+{v}\sum_{j=0}^{d-1}\{(v+j)/d\}=(d-1)/2+\{v\}. When vv is an integer, both sides of the resulting sawtooth identity take the same midpoint correction. Integrating gives (7).

The total energy. The mean-square energy over the cycle satisfies lim⁡N→∞1N∫TFN2=13∑a,b≥1(a,b)=11ab∫01/max⁡(a,b)w(at)w(bt) dt.\lim_{N\to\infty}\frac1N\int_\mathbb TF_N^2 =\frac13\sum_{\substack{a,b\ge1\\(a,b)=1}}\frac1{ab} \int_0^{1/\max(a,b)}w(at)w(bt)\,dt . The pair integral is ∫Tf(hx)f(jx) dx=(h,j)2/(3hj)\int_\mathbb Tf(hx)f(jx)\,dx=(h,j)^2/(3hj). For h=kah=ka, j=kbj=kb with a fixed primitive pair, the sum over k/Nk/N is a Riemann sum for the displayed integral. The absolute bound M2/[abmax⁡(a,b)]M^2/[ab\max(a,b)] is summable, since ∑a≤b1/(ab2)=∑bHb/b2<∞\sum_{a\le b}1/(ab^2)=\sum_b H_b/b^2<\infty, where Hb=∑j=1b1/jH_b=\sum_{j=1}^b1/j.

The energy of the profile. Extend ww by zero off (0,1)(0,1) as an L2(0,∞)L^2(0,\infty) function. Set Tw(t)=∑n≥1n−2w(t/n).Tw(t)=\sum_{n\ge1}n^{-2}w(t/n). The Fourier transform of GwG_w, with kernel e(−sξ)\mathrm e(-s\xi), is i sgn⁡(ξ) Tw(∣ξ∣)/πi\,\operatorname{sgn}(\xi)\,Tw(|\xi|)/\pi almost everywhere. Indeed the nnth nonzero Fourier coefficient of ff is i/(πn)i/(\pi n). Integrate the finite series against ww and change variable to ξ=nu\xi=nu in each term. The transform tails tend to zero in L2L^2 because ∥w(⋅/n)∥2=n ∥w∥2\|w(\cdot/n)\|_2=\sqrt n\,\|w\|_2. The corresponding finite integrals converge for each s≠0s\ne0 by Cauchy–Schwarz and periodwise L2L^2 convergence of the sawtooth series. This identifies the limit.

Parseval gives ∫R∣Gw∣2=2∥Tw∥22/π2\int_\mathbb{R} |G_w|^2=2\|Tw\|_2^2/\pi^2. Expand the squared norm. In the terms indexed by m=ka,n=kbm=ka,n=kb, (a,b)=1(a,b)=1, substitute t=kab vt=kab\,v. The term becomes 1k3ab∫01/max⁡(a,b)w(av)w(bv) dv.\frac{1}{k^3ab}\int_0^{1/\max(a,b)}w(av)w(bv)\,dv. Absolute convergence follows from the majorant of (8). Summing in kk gives ζ(3)\zeta(3). Since 2ζ(2)/π2=1/32\zeta(2)/\pi^2=1/3, the limit in (8) is EwE_w. Positivity follows without a zero estimate. The inverse of TT on L2(0,∞)L^2(0,\infty) is u↦∑n≥1μ(n)n−2u(⋅/n)u\mapsto\sum_{n\ge1}\mu(n)n^{-2}u(\cdot/n), where μ\mu is the Möbius function. Both series converge absolutely in operator norm. Their composition is the identity by ∑d∣nμ(d)=1n=1\sum_{d\mid n}\mu(d)=\mathbf1_{n=1}. For w=1w=1, equation (3) gives E1=1E_1=1, and the squared profile has integral ∫R∣G1(s)∣2 ds=ζ(3)/ζ(2)\int_\mathbb{R} |G_1(s)|^2\,ds=\zeta(3)/\zeta(2).

Exhaustion. For fixed T0T_0 and dd, (7) gives limiting normalized energy d−3∫−T0T0Gw2d^{-3}\int_{-T_0}^{T_0}G_w^2 inside distance T0/(Nd)T_0/(Nd) of a/da/d. Every weak subsequential limit thus assigns at least d−3∫RGw2d^{-3}\int_\mathbb{R} G_w^2 to the point. First bound the mass of a fixed closed neighbourhood, then shrink it and let T0T_0 increase. There are φ(d)\varphi(d) reduced phases of denominator dd, with φ(1)=1\varphi(1)=1 at the common reset. From ∑d∣nφ(d)=n\sum_{d\mid n}\varphi(d)=n, summation against n−3n^{-3} gives ζ(3)∑dφ(d)/d3=ζ(2)\zeta(3)\sum_d\varphi(d)/d^3=\zeta(2). These atoms exhaust the total in (8). No mass is left for any other point, and the limit is EwνE_w\nu. ◻

For equal amplitudes one can also start from Kunik’s profile and the GCD sum of , which gives J(N)/N→1J(N)/N\to1. Integrating the squared profile gives the mass at each rational, and the totient sum above exhausts that known total. Comparing the two energy calculations in the proof gives the corresponding result even when the harmonic amplitudes change sign.

An equivalent form is ν=1ζ(2)∑g≥1Ugg2,Ug=1g∑j=0g−1δj/g.\nu=\frac1{\zeta(2)}\sum_{g\ge1}\frac{U_g}{g^2}, \qquad U_g=\frac1g\sum_{j=0}^{g-1}\delta_{j/g}. At a/da/d only the grids indexed by multiples of dd contribute. Hence ν^(0)=1\widehat\nu(0)=1 and ν^(m)=∑g∣∣m∣g−2/ζ(2)\widehat\nu(m)=\sum_{g\mid |m|}g^{-2}/\zeta(2) for m≠0m\ne0.

In the equal-amplitude limit a share ζ(3)/ζ(2)=0.73076296…\zeta(3)/\zeta(2)=0.73076296\ldots of its energy lies at the common reset, 0.09130.0913 at half a turn and 0.02710.0271 at each third. Two quantities round to 73.0873.08 per cent. The mass at the start is 73.0763073.07630 per cent of the whole energy. The Pythagorean groups account for 73.0812573.08125 per cent over the entire period. A reading on a short arc distinguishes them.

The large amplitudes occupy a shrinking fraction of the cycle. Indeed BN/NB_N/\sqrt N tends to zero in measure although its mean square tends to one. To see this, cover finitely many rational phases carrying mass at least 1−η1-\eta by open arcs of total length less than η\eta. The closed complement has limiting upper energy at most η\eta. At any fixed threshold c>0c>0 the fraction of the period with ∣BN∣>cN|B_N|>c\sqrt N therefore has limit superior at most η+η/c2\eta+\eta/c^2. This upper bound tends to zero with η\eta.

Tapering the upper harmonics separates the two measurements in another way. The limit in Theorem 4 is the same measure ν\nu for every envelope, up to the constant EwE_w. The shares of Section 3 are for equal amplitudes. The proof of Corollary 2 applies to any envelope of bounded variation and gives the ratio of grouped to full power as the terms of (8) with a,b∈ΛPa,b\in\Lambda_P, divided by the whole sum for Ew>0E_w>0. For nonnegative amplitudes every omitted pair has nonnegative cycle mean, so this ratio is a share of the total. For the linear taper w(u)=1−uw(u)=1-u the integral in (8), for a<ba<b, is 1/(2b)−a/(6b2)1/(2b)-a/(6b^2). The diagonal contributes 1/91/9. Summing over all coprime pairs gives total energy per tone 5/9−ζ(2)/(9ζ(3))5/9-\zeta(2)/(9\zeta(3)), using ∑b≥2φ(b)/b3=ζ(2)/ζ(3)−1\sum_{b\ge2}\varphi(b)/b^3=\zeta(2)/\zeta(3)-1 and ∑a<b, (a,b)=11/(ab2)=1\sum_{a<b,\,(a,b)=1}1/(ab^2)=1 from the proof above. Restrict the numerator to the tuning primes and divide by this total. The Pythagorean share falls from 73.173.1 to 70.070.0 per cent and the five-limit share from 82.182.1 to 79.979.9 per cent.

Even a positive choice of amplitudes can reverse the finite-floor inequality. For w(u)=uw(u)=u the Pythagorean ratio at N=210N=210 is 4653661/5426519<0.8584653661/5426519<0.858. Indeed the common factors in the pair formula cancel, leaving (h,j)2(h,j)^2 as the weight of each ordered pair. Its limiting ratio exceeds 0.8590.859. In (8) the weight of a reduced pair is now 1/(9max⁡(a,b)3)1/(9\max(a,b)^3). The full sum, multiplied by nine, is 2ζ(2)/ζ(3)−12\zeta(2)/\zeta(3)-1. For a lower bound on the ratio it suffices to retain the Pythagorean pairs with max⁡(a,b)≤32\max(a,b)\le32 and bound ζ(2)\zeta(2) above and ζ(3)\zeta(3) below by their sums through 1000, adding 1/10001/1000 to the upper bound.

Signed amplitudes can give a ratio greater than one. For a short interval II of length η\eta centred at 1/61/6, the two bands II and 5I={5u:u∈I}5I=\{5u:u\in I\} have amplitudes +1+1 and −1-1, respectively. The envelope is zero elsewhere. As η\eta shrinks, each fixed reduced pair in (8) eventually has disjoint bands unless it is the diagonal or has ratio 55 or 1/51/5. The diagonal contributes 2η2\eta. The two orders of the 1:51:5 pair contribute −2η/15-2\eta/15. Its tones belong to different Pythagorean groups. After division by η\eta each summand is bounded in magnitude by 2/[abmax⁡(a,b)]2/[ab\max(a,b)], since the larger index meets the two bands for at most 6η/max⁡(a,b)6\eta/\max(a,b) of the integration interval. This bound is summable. The limiting grouped-to-full ratio therefore tends to 15/1415/14 as the bands narrow.

Interactions between tuning groups

In five-limit tuning, harmonics 11 and 77 belong to different groups. Squaring the full sum counts their product twice. Squaring the two groups separately omits both copies. The five-limit measurement retains over four fifths of the limiting energy. In that limit equal arcs near the common reset and near half a turn receive the same share.

Corollary 5 (Products between tuning groups). Let PP be a fixed finite set of primes. In BN2 dx/NB_N^2\,dx/N, the products of tones from different groups of ΛP\Lambda_P, taken in both orders, form a signed measure that tends weakly to ν−βP dx\nu-\beta_P\,dx. The squared individual tones tend to dx/3dx/3, and the products of distinct tones to ν−dx/3\nu-dx/3.

Proof. Subtract Corollary 2 from Theorem 4. The squared individual tones have limit dx/3dx/3 by (2) with a=b=1a=b=1. ◻

The absence of atoms inside a tuning group has a simple counting explanation. Any collection of at most KNKN ordered pairs contributes a density bounded in absolute value by KK after division by NN, since ∣f∣≤1|f|\le1. Its mass on any arc is bounded in absolute value by KK times the arc length. The pairs inside a fixed tuning lattice satisfy this count, by the convergent sum over 1/max⁡(a,b)1/\max(a,b) in the proof of Corollary 2. Counting explains the absence of limiting atoms for many ways of grouping tones. The actual uniform density βP\beta_P, and the energies at finite cutoffs, use the frequency ratios of the tuning.

The polarity experiment also separates reinforcement from cancellation. Write CN=BN2/NC_N=B_N^2/N and LN=LN,PL_N=L_{N,P} for the two power readings per tone. Their weak limits are mutually singular because ν\nu gives all its mass to the rational phases, and βP dx\beta_P\,dx gives them zero mass. By lower semicontinuity of the total variation norm, 1+βP=∥ν−βP dx∥TV≤lim inf⁡N∫T∣CN−LN∣≤lim sup⁡N∫T(CN+LN)=1+βP.\begin{aligned} 1+\beta_P=\|\nu-\beta_P\,dx\|_{\rm TV} &\le\liminf_N\int_{\mathbb T}|C_N-L_N|\\ &\le\limsup_N\int_{\mathbb T}(C_N+L_N)=1+\beta_P . \end{aligned} It follows that ∫Tmin⁡(CN,LN)→0\int_{\mathbb T}\min(C_N,L_N)\to0. Removing this common part from each reading leaves the positive and negative parts of their difference. Where the full mix gains power, (CN−LN)+ dx(C_N-L_N)_+\,dx tends weakly to ν\nu. Where it loses power, (LN−CN)+ dx(L_N-C_N)_+\,dx tends weakly to βP dx\beta_P\,dx. In units of limiting full-chord power the Pythagorean groups give a gain of 11 and a loss of about 0.730810.73081 at different phases of the period.

The peaks in a thirty-tone chord

Figure 1 compares the two readings on the peaks of the thirty-tone chord. The windows extend to a distance 1/N1/N from the onset and 1/(2N)1/(2N) from the half turn, with distances measured on the circle. At thirty tones the groups already supply close to half the first window’s power and four fifths of the second. At sixteen tones their half-turn reading is 102.6102.6 per cent of the combined reading because some between-group products cancel there.

Window Full / cycle Groups / cycle Groups / full in window
∣x∣≤1/30|x|\le1/30 72.38%72.38\% 32.86%32.86\% 45.4%45.4\%
∣x−1/2∣≤1/60|x-1/2|\le1/60 9.05%9.05\% 7.20%7.20\% 79.6%79.6\%
Thirty synchronized tones on the same vertical scale, per harmonic. The lower trace squares the five-limit groups separately. Both cycle percentages use the whole chord’s energy J(30)J(30). The last column compares the two areas within the indicated window.

The slopes of the ramps determine every entry. Let a group contain mm tones, let ss be the sum of their harmonic indices, and let ee count its even indices. On the right of the onset its voltage is 2sx−m2sx-m up to x=1/Nx=1/N. Just beyond the half turn at distance xx it is 2sx−e2sx-e up to x=1/(2N)x=1/(2N). Reflection preserves the square. Its two window energies are therefore 2N(m2−2msN+4s23N2),1N(e2−esN+s23N2).\frac2N\left(m^2-\frac{2ms}N+\frac{4s^2}{3N^2}\right),\qquad \frac1N\left(e^2-\frac{es}N+\frac{s^2}{3N^2}\right). The lower reading is the sum of these expressions over the groups. For the upper reading all the tones belong to one group.

Under a uniform random permutation of the thirty harmonic labels among the same eight groups, any two distinct labels meet with probability 322/(30⋅29)322/(30\cdot29). The expected whole-cycle power is 10+[322/(30⋅29)](J(30)−10)10+[322/(30\cdot29)](J(30)-10), since the thirty diagonal terms contribute 1010. The actual five-limit groups retain 89.7789.77 per cent of the power. The average over permutations is 60.5760.57 per cent.

Proposition 6 (The onset window). Let IN={x:∣x∣≤1/N}I_N=\{x:|x|\le1/N\}, N≥3N\ge3. For any fixed finite PP, the ratio of grouped to full power in INI_N is κP/N+oP(1/N)\kappa_P/N+o_P(1/N), where κP=32 ⁣∑a,b∈ΛP(a,b)=1(1v−u9v2),u=min⁡(a,b),v=max⁡(a,b).\kappa_P=\frac32\! \sum_{\substack{a,b\in\Lambda_P\\(a,b)=1}} \left(\frac1v-\frac{u}{9v^2}\right), \qquad u=\min(a,b),\quad v=\max(a,b). For Pythagorean tuning 11.85267<κP<11.8526811.85267<\kappa_P<11.85268. For five-limit tuning 26.04366<κP<26.0436826.04366<\kappa_P<26.04368.

Proof. The first expression in (10) gives full power 2(N2−N+1)/(3N)2(N^2-N+1)/(3N) on INI_N. A reduced ordered pair a,ba,b in one group has transpositions ta,tbta,tb for t≤N/vt\le N/v. Its unscaled contribution to the grouped window is 2N∑t≤N/v(1−(a+b)tN+4ab3t2N2).\frac2N\sum_{t\le N/v} \left(1-(a+b)\frac{t}{N}+\frac{4ab}3\frac{t^2}{N^2}\right). The Riemann sum tends to 1/v−u/(9v2)1/v-u/(9v^2). It is bounded in absolute value by 2/v2/v, since each product has magnitude at most one. The summable lattice bound of Corollary 2 allows us to add the limits. Division by the full window energy gives the result. For the numerical bounds sum to v≤1020v\le10^{20}. In the tail, 1/v≤10−10(ab)−1/41/v\le10^{-10}(ab)^{-1/4}. The sum of (ab)−1/4(ab)^{-1/4} over all ordered coprime lattice pairs is ∏ℓ∈P(1+ℓ−1/4)/(1−ℓ−1/4)<13∣P∣\prod_{\ell\in P}(1+\ell^{-1/4})/(1-\ell^{-1/4})<13^{|P|} for nonempty PP. This bounds the omitted terms with their original weights. ◻

At the half turn it also matters which tones reset. Write ϵk=1\epsilon_k=1 for even kk and 00 for odd kk. On ∣x−1/2∣≤1/(2N)|x-1/2|\le1/(2N) the ratio of grouped to full power is κP,1/2/N+oP(1/N)\kappa_{P,1/2}/N+o_P(1/N), where, over the same ordered pairs, κP,1/2=12∑a,b[12v−(1+ϵu)v+(1+ϵv)u8v2+u9v2].\kappa_{P,1/2}=12\sum_{a,b}\left[ \frac1{2v}-\frac{(1+\epsilon_u)v+(1+\epsilon_v)u}{8v^2} +\frac{u}{9v^2}\right]. Indeed the two ramps on the right are 2tax−ϵta2ta x-\epsilon_{ta} and 2tbx−ϵtb2tb x-\epsilon_{tb}, with xx now measured from the half turn. For coprime a,ba,b, the parity means of ϵta\epsilon_{ta} and ϵtaϵtb\epsilon_{ta}\epsilon_{tb} are (1+ϵa)/2(1+\epsilon_a)/2 and 1/21/2. Integration and the two Riemann sums over even and odd tt give the expression in brackets. Its absolute bound 1/v1/v permits summation. The full-window energy is asymptotic to N/12N/12 by (10). For five-limit tuning the same tail estimate gives 68.05745<κP,1/2<68.0574668.05745<\kappa_{P,1/2}<68.05746. The approach can be seen directly in (10). At cutoffs 30,300,300030,300,3000, multiplying the grouped fraction by the cutoff gives 13.62,22.00,25.0613.62,22.00,25.06 at the onset and 23.87,54.19,64.6623.87,54.19,64.66 at the half turn. The two peaks retain different fractions even as both fractions tend to zero.

Keeping a fixed finite list of reduced intervals gives a uniform limiting density by (2). Adding more intervals after taking their limits still gives a uniform measure. Taking all intervals present at each cutoff before passing to the limit gives ν\nu. In particular the atom at half a turn does not belong to the fifth alone.

Remark 7 (Major and minor). The just major and minor voicings 4:5:64:5:6 and 10:12:1510:12:15 are inversions and have the same three pairwise overlaps . They therefore have the same mean square 7/67/6. A different reading separates their waveforms. Integrating on each linear segment between the resets gives the fourth moments 171/40171/40 for 4:5:64:5:6 and 97577/2700097577/27000 for 10:12:1510:12:15.

These fourth moments use synchronized starts. Delaying the highest voice by half its own period changes the major value to 29/1029/10 and leaves the minor value unchanged. The even indices 10,1210,12 stay fixed under the common half-period shift that reverses phase for 1515. The inversion preserves the interval content and the aligned second moment. The fourth moment also reads the relative phases.

The harmonic chord on a prime-square grid

Each entry in the equal-digit table gives one amplitude of the chord. Its address specifies a step size in the digit experiment. A permutation gives the phase at which the chord has that amplitude.

The earlier alignment count locates an interval by comparing digit matches . Its deficit has a sampling interpretation. Two marked residue classes modulo ℓ\ell on a circle of ℓm\ell m cells occupy 2/ℓ2/\ell of the circle. Omitting the marked point zero leaves proportion (2m−1)/(ℓm−1)(2m-1)/(\ell m-1). For base twelve, with ℓ=11\ell=11 and mm supported on 2,32,3, the ratio of the two deficits at 2m2m and 3m3m tends to 3/23/2 .

In a prime base pp, write Q=p2Q=p^2. The two-digit words 00,11,…00,11,\ldots with equal digits have addresses nd=(p+1)dn_d=(p+1)d, 0≤d<p0\le d<p. For a walk with increment 0≤a<Q0\le a<Q, the number of carries at the marked steps is Cp(a)=∑d=0p−1(⌊(nd+1)aQ⌋−⌊ndaQ⌋).C_p(a)=\sum_{d=0}^{p-1} \left(\left\lfloor\frac{(n_d+1)a}{Q}\right\rfloor -\left\lfloor\frac{n_da}{Q}\right\rfloor\right). Over all QQ steps the differences telescope to aa. The equal-digit words occupy 1/p1/p of the table, so Cp(a)−a/pC_p(a)-a/p is their signed carry excess. Squaring each excess before summing gives the digit-collision energy Ep=∑a=0Q−1(Cp(a)−a/p)2E_p=\sum_{a=0}^{Q-1}(C_p(a)-a/p)^2. For M=kp2+a>p2M=kp^2+a>p^2 coprime to pp, precisely kp+Cp(a)−1kp+C_p(a)-1 of the fractions r/Mr/M, 1≤r<M1\le r<M, begin with two equal digits .

For the musical phase y=j(a)/Qy=j(a)/Q, where j(a)j(a) is the least nonnegative residue of (p+1)a mod Q(p+1)a\bmod Q, the floor differences give the straightening identity of in the form Cp(a)−a/p=∑d=0p−1({dy}−{dy+a/Q})=∑h=1p−1({hy}−{−hy})=Bp−1(y).C_p(a)-a/p=\sum_{d=0}^{p-1}\big(\{dy\}-\{dy+a/Q\}\big) =\sum_{h=1}^{p-1}\big(\{hy\}-\{-hy\}\big)=B_{p-1}(y). Here (p−1)y+a/Q(p-1)y+a/Q is an integer, and the last difference takes the midpoint value at every integer. Since 1−p1-p inverts p+1p+1 modulo QQ, Ep/QE_p/Q is the chord’s mean square over all QQ phases. In base three the two tones give −1/9+7/9=2/3-1/9+7/9=2/3 at increment one and −2/3-2/3 at eight. Each contributes 4/94/9 to E3=16/3E_3=16/3. The nine samples have mean square 16/2716/27. Over a full period the same two tones have mean square J(2)=1J(2)=1.

Corollary 8 (Sampling the rational peaks). Suppose Q≥N2Q\ge N^2 and the QQ sampling phases are equally spaced, with any common offset. For each fixed real envelope ww of bounded variation, the sampled measures with mass FN(xj)2/(NQ)F_N(x_j)^2/(NQ) at xjx_j converge weakly to EwνE_w\nu, uniformly in the offset. The equal-digit table has N=p−1, Q=p2N=p-1,\ Q=p^2 with the base running through the primes. In musical phase order the assertion for equal amplitudes is 1NQ∑a=0Q−1(Cp(a)−a/p)2 δj(a)/Q ⟶ ν.\frac{1}{NQ}\sum_{a=0}^{Q-1}\bigl(C_p(a)-a/p\bigr)^2\, \delta_{j(a)/Q}\ \longrightarrow\ \nu . The separate tuning groups, read at those same phases, have limit βP dx\beta_P\,dx for fixed PP.

Proof. The function F~N\widetilde F_N equals each sampled amplitude throughout the cell to its right. Distinct reduced resets of denominator at most NN have circular distance at least 1/N21/N^2. Each closed cell therefore meets at most two, and any reset meets at most two cells. Write M=sup⁡∣w∣M=\sup|w|. Between resets the slope has magnitude at most MN(N+1)MN(N+1). Across a reduced reset of denominator dd the amplitude can change by at most 2M⌊N/d⌋2M\lfloor N/d\rfloor, including its midpoint. Squaring the sum of the drift and these at most two jumps and integrating gives ∥F~N−FN∥22≪M2(N4Q2+1Q∑d≤Nφ(d)⌊N/d⌋2)≪M2log⁡(2N).\|\widetilde F_N-F_N\|_2^2 \ll M^2\left(\frac{N^4}{Q^2} +\frac1Q\sum_{d\le N}\varphi(d)\lfloor N/d\rfloor^2\right) \ll M^2\log(2N). By (8), ∥FN∥2=Ow(N)\|F_N\|_2=O_w(\sqrt N). Cauchy–Schwarz now gives ∥F~N2−FN2∥1=ow(N)\|\widetilde F_N^2-F_N^2\|_1=o_w(N). Against a continuous test function its value at the grid point and its cell average differ by at most its modulus of continuity at 1/Q1/Q. The normalized masses are bounded. Theorem 4 gives the claimed limit for every offset.

For the groups, fix a reduced pair a,ba,b. The product at transposition tt, times any fixed smooth test function, has variation Oa,b(1+t)O_{a,b}(1+t), with the constant depending also on the test. The difference between its grid mean and integral costs at most this variation divided by QQ. Sum to N/max⁡(a,b)N/\max(a,b) and divide by NN to get Oa,b(N/Q)O_{a,b}(N/Q). The same summable 2/max⁡(a,b)2/\max(a,b) bound as on the circle applies to the two orders with a bounded test of norm one. Sum over the lattice, then approximate continuous tests uniformly. ◻

Follow the samples on either side of the common onset back to their original addresses. At musical phases ±k/Q\pm k/Q, 1≤k<p1\le k<p, they have absolute amplitude N(1−k/p)N(1-k/p), by summing the first ramps. In the original table their positions a/Qa/Q are xk=(p−1)k/Qx_k=(p-1)k/Q and 1−xk1-x_k. Against a continuous weight uu, those entries contribute Np2∑k=1p−1(1−k/p)2(u(xk)+u(1−xk)) ⟶ ∫01(x2+(1−x)2)u(x) dx.\frac{N}{p^2}\sum_{k=1}^{p-1}(1-k/p)^2 \bigl(u(x_k)+u(1-x_k)\bigr) \ \longrightarrow\ \int_0^1 \bigl(x^2+(1-x)^2\bigr)u(x)\,dx . This is a Riemann sum since xk=k/p+O(1/p)x_k=k/p+O(1/p) uniformly. Thus the two sides of the onset alone spread mass 2/32/3 over the circle in the original order. The other squared readings are positive or zero. The total power agrees in either order, but only the musical phases in the corollary put those samples beside the common onset.

Taking the constant phase weight in Corollary 8 gives Ep/((p−1)p2)→1E_p/((p-1)p^2)\to1, the leading cubic law. On a single fifth the same grid gives a smaller discrepancy that can be computed exactly. Specializing the bilinear identity of at 2,32,3 gives, for p>3p>3, 2Q∑j=0Q−1f(2j/Q)f(3j/Q)=(Q−1)(Q−13)9Q2.\frac2Q\sum_{j=0}^{Q-1} f(2j/Q)f(3j/Q) =\frac{(Q-1)(Q-13)}{9Q^2}. The same value follows by summing the product of the two ramps over the four intervals cut by 1/3,1/2,2/31/3,1/2,2/3, with the midpoint zero at the origin. Each transposition through p−1p-1 permutes the grid. All fifths together therefore account for a circle-minus-grid mean of order 1/p1/p.

For the whole chord the number-theory companion proves J(N)=N−π−2(log⁡N)2+O((log⁡N)5/3),Ep=p3−π−2(plog⁡p)2+O(p2(log⁡p)5/3),J(p−1)−Ep/Q=1+Oε(p−1/4+ε).\begin{aligned} J(N)&=N-\pi^{-2}(\log N)^2+O((\log N)^{5/3}),\\ E_p&=p^3-\pi^{-2}(p\log p)^2+O(p^2(\log p)^{5/3}),\\ J(p-1)-E_p/Q&=1+O_\varepsilon(p^{-1/4+\varepsilon}). \end{aligned} The diagonal and mixed contributions are identified in . The tuning table asks a further question. How much do these corrections change the fraction of power the groups retain?

Corollary 9 (Tuning shares on the circle and on the grid). For equal amplitudes and a fixed finite set of tuning primes PP, write R=JP(N)/J(N)R=J_P(N)/J(N) for the grouped share over a period. Then R−βP=βPπ2(log⁡N)2N+OP ⁣((log⁡N)5/3N).R-\beta_P=\frac{\beta_P}{\pi^2}\frac{(\log N)^2}{N} +O_P\!\left(\frac{(\log N)^{5/3}}{N}\right). At N=p−1N=p-1, let RgR_g denote the share measured at the Q=p2Q=p^2 musical phases for prime pp. Then Rg−R=βPN+oP(1/N).R_g-R=\frac{\beta_P}{N}+o_P(1/N).

Proof. Put D=N−J(N)D=N-J(N) and DP=NβP−JP(N)D_P=N\beta_P-J_P(N). Subtraction gives R−βP=(βPD−DP)/J(N)R-\beta_P=(\beta_P D-D_P)/J(N). The grouped loss DPD_P is bounded by (6). The first assertion follows from the continuous second term of .

The full and grouped grid readings are H=Ep/Q,HP=NQ∑j=0Q−1LN,P(j/Q).H=E_p/Q,\qquad H_P=\frac NQ\sum_{j=0}^{Q-1}L_{N,P}(j/Q). Put S=J(N)−HS=J(N)-H and SP=JP(N)−HPS_P=J_P(N)-H_P. Each transposition of a reduced pair a≤ba\le b permutes the grid. Its error in mean is at most 4(a+b)/Q4(a+b)/Q by variation. There are at most N/bN/b copies, hence an error of order N/QN/Q for a given pair. Counting the possible prime exponents gives OP((1+log⁡(2N))2∣P∣)O_P((1+\log(2N))^{2|P|}) pairs. Thus SP=oP(1)S_P=o_P(1). For the full chord S=1+o(1)S=1+o(1) by . Subtracting the two measured shares gives Rg−R=HPH−R=RS−SPJ(N)−S.R_g-R=\frac{H_P}{H}-R=\frac{RS-S_P}{J(N)-S}. Since J(N)/N→1J(N)/N\to1 and R→βPR\to\beta_P, this gives the second assertion. ◻

The last calculation locates the missing unit between the groups. Their own discrepancy SPS_P tends to zero, and the between-group discrepancy S−SPS-S_P tends to one. The five-limit readings over the full cycle are

pp Within groups SPS_P Between groups S−SPS-S_P
31 0.57132 0.37986
101 0.24386 0.78312
1009 0.05366 0.98380

At p=31p=31 the groups account for the larger part of the whole-cycle discrepancy. Dividing the powers gives a more immediate musical comparison. For the same thirty tones the five-limit share is 89.7789.77 per cent over the continuous period and 90.8790.87 per cent when the period is read at its 961 equally spaced phases.

Interference near the common onset

Two tones belong to different five-limit groups precisely when their frequency ratio, in lowest terms, has a prime greater than five in its numerator or denominator. How much of the chord’s power comes from pairs spanning those groups depends on where in the period the power is measured.

As more harmonics sound, the five-limit groups retain a limiting share above 8282 per cent over the whole period. In the window of radius 1/N1/N about the onset their share falls as κP/N\kappa_P/N, with κP\kappa_P about 26.0426.04. Almost all the power in that narrowing window comes from interference between groups.

The distinction can be measured with the pitches and onset held fixed. Between takes, whole groups change polarity independently. Subtracting the average power over all sign choices from the power of the original chord gives the between-group contribution at each phase. In the thirty-tone chord, these pairs supply 10.2310.23 per cent of the power over a full period. Within 1/301/30 of the common onset, the same pairs supply 54.6054.60 per cent.

Funding

This research received no external funding.

Disclosure statement

The author reports no competing interests.

References

[1]Benson, D. J. 2007. Music: A Mathematical Offering. Cambridge: Cambridge University Press. https://doi.org/10.1017/CBO9780511811722.

[2]Cubarsí, R. 2019. “Harmonic Distance in Intervals and Chords.” Journal of Mathematics and Music 13 (1): 85–106. https://doi.org/10.1080/17459737.2019.1608600.

[3]Franel, J. 1924. “Les suites de Farey et le problème des nombres premiers.” Nachrichten von der Gesellschaft der Wissenschaften zu Göttingen, Mathematisch-Physikalische Klasse 1924: 198–201.

[4]von Helmholtz, H. (1885) 1954. On the Sensations of Tone as a Physiological Basis for the Theory of Music. Translated by A. J. Ellis. 2nd English ed. Reprint, New York: Dover.

[5]Hilberdink, T., F. Luca, and L. Tóth. 2020. “On Certain Sums Concerning the GCD’s and LCM’s of kk Positive Integers.” International Journal of Number Theory 16 (1): 77–90. https://doi.org/10.1142/S1793042120500049.

[6]Kunik, M. 2020. “New Insight into Results of Ostrowski and Lang on Sums of Remainders Using Farey Sequences.” Online Journal of Analytic Combinatorics 15, article 11. https://www.math.ovgu.de/math_media/Medien/Institute/IAN/Kunik/Publikationen/kunik_ojac.pdf.

[7]Landau, E. 1924. “Bemerkungen zu der vorstehenden Abhandlung von Herrn Franel.” Nachrichten von der Gesellschaft der Wissenschaften zu Göttingen, Mathematisch-Physikalische Klasse 1924: 202–206.

[8]Petty, A. S. 2026a. “The Alignment Deficit Lattice and Musical Tuning.” Journal of Mathematics and Music, 1–7. https://doi.org/10.1080/17459737.2026.2741838.

[9]Petty, A. S. 2026b. “Digit-Collision Energy and the Common Reset.” Preprint. https://doi.org/10.5281/zenodo.24602180.

[10]Stolzenburg, F. 2015. “Harmony Perception by Periodicity Detection.” Journal of Mathematics and Music 9 (3): 215–238. https://doi.org/10.1080/17459737.2015.1033024.

[11]Vos, J. 1982. “The Perception of Pure and Mistuned Musical Fifths and Major Thirds: Thresholds for Discrimination, Beats, and Identification.” Perception & Psychophysics 32 (4): 297–313. https://doi.org/10.3758/BF03206236.

[12]Woodhouse, J. 1993. “On the Playability of Violins. Part II: Minimum Bow Force and Transients.” Acustica 78: 137–153. https://euphonics.org/wp-content/uploads/2022/03/Playability_2.pdf.