Two Chords, One Interval Fingerprint
Abstract
Two different four-note collections contain precisely the same intervals. Their shared mathematics explains an ambiguity in diffraction, but does not make the chords acoustically identical.
Contents
Part of The Beauty of Physics, Mathematics, and Music (and Maybe Cats).
Consider two chords: C, C♯, E, F♯ and C, C♯, E♭, G. Both have one of each of the possible non-zero interval classes (semitone, tone, minor third, major third, fourth, tritone). However the interval content doesn’t tell us which of the two sets of notes we have.
This is known as a Z-relation in music theory. There is a corresponding concept in crystallography, called homometry, where different arrangements can give the same intensity of diffraction peaks. The connection holds exactly for a specified model. This doesn’t mean that the two chords will sound the same, or that we can learn the harmony of a piece of music by shining X-rays at the instrument [[1]]!
However, we can work out the interval content of a chord with just a bit of counting and some arithmetic that wraps around at 12. We can then use a Fourier transform to see why this ambiguity exists in other areas as well as music.
The Octave Turns Distances Into Classes
The 12 notes of the chromatic scale are called pitch classes, and can be numbered from C=0 to B=11. Notes that differ by an octave get the same number. Other enharmonic notes (e.g. C♯ and D♭) are also considered the same pitch class. So the two chords are the sets
$$ A=\{0,1,4,6\},\qquad B=\{0,1,3,7\}. $$This representation doesn’t care which octave the notes are in, or whether they are doubled. It doesn’t contain any information about the order the notes are played in, their rhythm, dynamics or timbre. It is a collection of pitch classes that could be played as a chord, but not a full description of a chord.
For two distinct entries \(a\) and \(b\), define their interval class as
$$ \operatorname{ic}(a,b) =\min\bigl((b-a)\bmod12,(a-b)\bmod12\bigr). $$Both remainders lie between zero and eleven. Taking the smaller identifies an interval with its inversion: seven semitones becomes class five. A perfect fifth and a perfect fourth therefore contribute to the same category.
Four distinct notes have \(\binom42=6\) unordered pairs. In \(A\), the ordinary positive differences between the listed numbers are
$$ 1,4,6,3,5,2. $$In \(B\), they are
$$ 1,3,7,2,6,4. $$Replacing seven with its complementary distance five gives the same inventory. In the conventional order of interval classes one through six, both interval vectors are
$$ (1,1,1,1,1,1). $$The equality depends on octave identification. As finite sets of points on an ordinary line, the collections have different distance inventories: one contains a distance five, the other a distance seven.
With the pitch classes placed on a unit circle, the chord joining \(a\) and \(b\) has length \(2\sin\bigl(\pi\operatorname{ic}(a,b)/12\bigr)\), so equal interval vectors mean equal chord lengths (Fig. 1).
Moving the Whole Collection Does Not Explain It
Transposition adds the same number to every pitch class, modulo twelve. Inversion replaces every \(x\) with \(c-x\), also modulo twelve, for some fixed \(c\). Both operations preserve interval classes. The group-theory treatment of Messiaen’s modes uses these same operations.
However, our two chords cannot be transformed into each other by these operations, which makes them more interesting. We can prove this by looking at the intervals between consecutive notes in each set.
Starting with the smallest note in each set, and going in ascending order, the intervals (cyclically) are:
$$ A:\ (1,3,2,6),\qquad B:\ (1,2,4,5). $$Transposition will just rotate this list, and inversion will reverse the order (cyclically). Neither operation can alter which intervals are present. One set contains a gap of three and a gap of six semitones; the other set contains a gap of four and a gap of five semitones.
The definition of a Z-relation is that two sets in different transposition/inversion equivalence classes have the same interval content. This pair of sets is discussed in this paper by Jedrzejewski and Johnson. They show that it is the only pair of 4-note set classes with this property in 12 tone equal temperament [[1]].
Counting Directed Pairs Makes the Physics Visible
The interval vector only has 6 entries because it combines the two directions between a pair of notes. For a Fourier transform, it is more convenient to consider all 12 possible (directed) differences.
Let $x_A(n)$ be a function that is 1 if the pitch class ($n$) is in the set A, and 0 otherwise. We can define the (cyclic) auto-correlation function
$$ C_A(d)=\sum_{n=0}^{11}x_A(n)x_A(n+d), $$where the sum is over n from 0 to 11, and the argument of x_A is taken modulo 12. This function counts the number of ordered pairs of notes (n, n+$d$) in the chord. The product x_A(n) x_A(n+d) is 1 if both notes are in the set, and zero otherwise.
Our calculation gives, in the order \(d=0,1,\ldots,11\),
$$ C_A=C_B=(4,1,1,1,1,1,2,1,1,1,1,1). $$The entry for $d$=0 counts the 4 pairs (n,n). For each pair of notes with an interval class of 1 to 5, there is one contribution to d and one to $12-d$. The tritone is a special case: for that pair of notes, both directions give a difference of 6, so there are two contributions to that entry.
So the auto-correlation function contains the same information as the interval vector (for sets of a given size), but it counts the pairs of notes in a slightly different way. (It is essential to divide the number of tritones by 2!) [[1]]
Notice what the count has removed: which pairs share a note. An inventory can record every distance without recording how the distances fit together.
The Fourier Magnitudes Agree Because the Pairs Agree
Define the discrete Fourier transform of the indicator by
$$ X_A(k)=\sum_{n=0}^{11}x_A(n)e^{-2\pi i kn/12}, \qquad k=0,\ldots,11, $$where \(i^2=-1\). Each occupied position contributes a complex phase; the sum records both magnitude and phase.
Transforming the autocorrelation and substituting \(m=n+d\) gives
$$ \begin{aligned} \sum_{d=0}^{11}C_A(d)e^{-2\pi i kd/12} &=\sum_{n,m=0}^{11}x_A(n)x_A(m) e^{-2\pi i k(m-n)/12}\\ &=X_A(k)\overline{X_A(k)}\\ &=|X_A(k)|^2. \end{aligned} $$The bar denotes complex conjugation. Since our autocorrelations agree, the squared Fourier magnitudes agree at every \(k\). Conversely, the discrete Fourier transform is invertible, so equal squared magnitudes imply equal cyclic autocorrelations.
For our two sets, the result is particularly simple: the auto-correlation function is a constant (1) with an extra 3 at d=0, and an extra 1 at d=6. The transform of a constant row of 1s is 12 at $k=0$, and zero for all other values of k. So we get
$$ |X_A(k)|^2=|X_B(k)|^2= \begin{cases} 16,&k=0,\\ 3+(-1)^k,&k\ne0. \end{cases} $$The nonzero even indices give four; the odd indices give two. At zero, four occupied positions add coherently, giving \(4^2=16\).
The phases of the Fourier transforms may be different. If X_A(k)=X_B(k) (including the phase) for all k, then the inverse transform would give the same set. The squared magnitude leaves out just enough information to allow the two different sets we have considered.
For the sets as written (A = {0, 1, 4, 6} and B = {0, 1, 3, 7}), the phases are only the same for $k=0$, 4 and 8 (Fig. 2). Of course the phase of the Fourier transform at a single frequency is not an inherent property of the set: if you transpose the set by ($t$) semitones, you subtract $2\pi kt/12$ from the phase. If you invert the set about C, you change the sign of the phase.
A Diffraction Experiment Needs a Different Physical Object
To make the crystallographic connection literal, use a one-dimensional periodic arrangement of identical scatterers. Put scatterers at positions \(a/12\) within a unit cell of length one, for each \(a\) in the chosen set, and repeat the cell along a line.
For an integer value of the reciprocal lattice vector ($k$), the structure factor of this periodic arrangement is
$$ F_A(k)=f(k)\sum_{a\in A}e^{-2\pi i ka/12}, $$where the sum is over the four values of a in the set A, and $f(k)$ is the scattering amplitude from each of the identical constituents. In the ideal (kinematic) approximation, the intensity of the diffraction peak at this Bragg peak is proportional to $|F_A(k)|^2$. The two periodic structures we have constructed will have identical diffraction intensities at all of these reciprocal lattice vectors, despite the fact that they are different.
If we measure the intensity of the diffraction peaks, we lose the phase information in $F$. Trying to reconstruct the structure without the phases is the infamous phase problem in crystallography. In 1934, Patterson performed a Fourier transform of the intensities (squared magnitude of the structure factor), which gives the vectors between pairs of atoms “without making any assumptions as to the phase” [[2]]. This Patterson function is the auto-correlation of the unit cell. For our toy crystals, it will be proportional to $C_A$ (with the same peak shape convolved with each delta function) [[1]]. A homometric pair of structures is one where you cannot distinguish between the two with a perfectly accurate Patterson function.
Identical scattering weights, periodic repetition and the loss of phase are the assumptions doing the work. Unequal weights or additional structural information can change the inverse problem. Without periodicity the pair is not homometric. For an isolated cluster at the same positions, \(X_A(q)\) is defined for any real \(q\), and \(|X_A(q)|^2=4+2\sum_d\cos(2\pi qd/12)\) over its six distances \(d\) on the line. Only the distance five of \(A\) and the distance seven of \(B\) differ:
$$ |X_A(q)|^2-|X_B(q)|^2 =2\cos\frac{5\pi q}{6}-2\cos\frac{7\pi q}{6}, $$which vanishes at the integers and nowhere else (Fig. 2). The lattice samples the transform exactly where the two clusters agree.
The name is older than Patterson’s 1944 paper on ambiguities in X-ray analysis: it is the title of his 1939 note, “Homometric Structures”. [[3]] The 1944 paper treats mainly one-dimensional “cyclotomic sets”, in which “the points divide the period on the line into rational fractions”, as here. [[4]]
A musical sound has a different spectrum. Equal-tempered frequencies follow \(f_n=f_0 2^{n/12}\); the twelve positions are steps of a logarithmic frequency axis folded at the octave, not equally spaced scatterers. The Fourier transform above acts on a twelve-entry pitch-class indicator, rather than on acoustic pressure measured over time. Equal interval fingerprints give no equality of actual sound spectra.
What differs is concrete. In close position from middle C (A4 = 440 Hz), \(A\) sounds 261.63, 277.18, 329.63 and 369.99 Hz and \(B\) 261.63, 277.18, 311.13 and 392.00 Hz: two fundamentals differ, and so does every partial built on them. The interval class also merges a fourth with a fifth. Our check of every voicing on an 88-key piano (four keys, one per pitch class) of either chord and of all its transpositions and reflections finds none with the same six semitone distances as a voicing of the other. A roughness model that sums over pairs of partials therefore receives different input; how different its output is depends on the instruments, the subject of When Consonance Changes with the Instrument.
Three Notes Can Recover What Pairs Forget
The set A = {0, 1, 4, 6} contains the subset $\{0,1,4\}$, which has interval classes 1, 3 and 4 between the three pairs of notes. None of the four subsets of $B$ = {0, 1, 3, 7} with three notes has this combination of interval classes (the four triples have interval classes $(1,2,3)$, $(1,5,6)$, $(3,4,5)$ and $(2,4,6)$). The most recognisable of these is (3,4,5): the notes C, E♭, G, a minor triad. The first chord does not contain a major or minor triad.
For these particular collections, information about three-note groupings distinguishes what the complete two-note inventory cannot. In Fourier terms, the three-point analogue of \(C_A\), which counts the \(n\) with \(n\), \(n+s\) and \(n+t\) all in the set, transforms to \(X(k_1)X(k_2)\overline{X(k_1+k_2)}\). That keeps the phase combination \(\varphi(k_1)+\varphi(k_2)-\varphi(k_1+k_2)\), with \(\varphi=\arg X\), which transposition leaves unchanged and inversion negates. [[5]] At \(k_1=k_2=1\) it is \(-150^\circ\) for \(A\) and \(-30^\circ\) for \(B\), so no transposition or inversion matches them.
If none of the Fourier coefficients are zero (as is the case for these two sets), the three point auto-correlation will distinguish the set up to transposition [[5]]. In general, this does not work: when the octave is divided into any even number of parts from 12 upwards, Mandereau et al. construct sets with the same three point auto-correlation, which are not related by a transposition [[5]]. For 12-tone equal temperament, the sets are $\{0,1,2,5,9,10\}$ and $\{0,1,2,4,5,9\}$ (which I can confirm are related by an inversion).
Why is the interval vector useful?
The interval vector gives a compact description of a set of pitch classes, in a way that is invariant under transposition. But of course by compressing the data, the question it answers is narrower than identifying every musical relationship (Still less questions about consonance or the aesthetic value of a chord!) The two sets we have looked at are a small example that shows the limitation.
The interval fingerprint contains all six distances. It has just forgotten who was holding hands.
Sources and the worked calculations checked through 2026-10-25.
References
[1] Jedrzejewski, F., and Johnson, T. (2013). The Structure of Z-related Sets. Preprint, arXiv:1304.6608, version 1, §§1, 3 and 4. Full text. DOI: 10.48550/arXiv.1304.6608.
[2] Patterson, A. L. (1934). A Fourier Series Method for the Determination of the Components of Interatomic Distances in Crystals. Physical Review, 46, 372–376. DOI: 10.1103/PhysRev.46.372.
[3] Patterson, A. L. (1939). Homometric Structures. Nature, 143, 939–940. DOI: 10.1038/143939b0.
[4] Patterson, A. L. (1944). Ambiguities in the X-Ray Analysis of Crystal Structures. Physical Review, 65, 195–201. DOI: 10.1103/PhysRev.65.195.
[5] Mandereau, J., Ghisi, D., Amiot, E., Andreatta, M., and Agon, C. (2011). Discrete phase retrieval in musical structures. Journal of Mathematics and Music, 5(2), 99–116, §§3 and 4.1. Author’s copy. DOI: 10.1080/17459737.2011.608820.
Changelog
- 2026-10-12: Research and calculation review. Derived and checked the pair counts, inequivalence, Fourier magnitudes and distinguishing triples; separated cyclic diffraction from acoustic spectra.
- 2026-10-25: The 2026-10-12 calculations held. Added two figures. Named the autocorrelation as the Patterson function and stated the phase problem (Patterson 1934, 1944). Noted that a single phase is not invariant under transposition or inversion. Replaced “nor does this establish equality … for two isolated finite clusters” with their intensity difference, zero only at lattice points. Added that this is the only Z-related pair of four-note classes in twelve-tone equal temperament, that B contains a minor triad and A none, and, after Mandereau et al. (2011), the triple-phase invariant, when triples determine a set, and counterexamples. Described pitch as a folded log-frequency axis; made the acoustic difference concrete (frequencies, piano voicings).
AI-likeness scores (0–1) · Mesmer 0.02 · MELD 0.54 · Open Pangram 0.03