Learning the Helix Topology of Musical Pitch

Vincent Lostanlen, Sripathi Sridhar, Brian McFee, Andrew Farnsworth, Juan Pablo Bello

Abstract

In music psychology, pitch is traditionally modeled as a helix to account for the dual nature of auditory perception: pitch height (linear frequency) and pitch class (chromatic similarity across octaves). This paper explores whether this helical structure can be discovered directly from raw, unlabeled audio data using unsupervised manifold learning. By analyzing correlations between frequency subbands and applying the Isomap algorithm, the researchers successfully recovered the classic Drobisch-Shepard helix without any prior musical knowledge. The study further examines how this topology manifests in speech and urban noise, highlighting the unique statistical properties of harmonic signals.

The Problem: Hard-Coding vs. Learning Topology

Standard audio processing tools, such as chroma features, typically have the helical structure of pitch "hard-coded" into their design by engineers. This assumes that octave equivalence—the perception that notes an octave apart are similar—is a fundamental truth. The authors sought to determine if this 3D topology is an inherent statistical property of harmonic sounds that a machine can learn on its own. If a machine can discover the helix from raw data, it suggests that the structure is rooted in the physics of sound rather than just human cultural convention.

The Unsupervised Pipeline

To visualize the statistical relationships between frequency ranges, the researchers developed a multi-step pipeline:

  1. Constant-Q Transform (CQT): Audio is converted into a time-frequency representation where bins are spaced logarithmically, matching the semitone structure of Western music.
  2. Loudness Mapping: Magnitudes undergo logarithmic compression to mimic human auditory perception.
  3. Correlation Analysis: The system calculates the Pearson correlation between frequency subbands. High correlation indicates that these frequencies (e.g., a fundamental and its octaves) frequently co-occur.
  4. Graph Construction: A $K$-nearest neighbor (KNN) graph is built, where nodes represent frequency bins and edges connect the most highly correlated pairs.
  5. Isomap Manifold Learning: The high-dimensional graph is projected into 3D space. Isomap preserves "geodesic" distances, allowing the underlying geometric shape of the data to emerge.
The functional pipeline: from raw audio (W) to a correlation matrix (X), distance metrics, and finally the learned 3D helical manifold (V).

Key Insights: Why the Helix Emerges

The helix emerges because natural musical instruments produce harmonics at integer multiples of the fundamental frequency ($2f_0, 3f_0$, etc.). Because these harmonics consistently co-occur, the manifold learning algorithm detects these connections and "bends" the linear frequency axis into a circle every octave.

However, the clarity of this shape depends on the instrumentarium. Instruments with rich overtones, like the trumpet, produce a distinct, clear helix. In contrast, instruments like the harp—which have fewer high-order partials and more sympathetic resonance between adjacent strings—result in a flatter, more rectilinear topology.

Results Across Domains

  • Music: The algorithm consistently produced a quasi-perfect cylindrical manifold for musical notes, matching the Drobisch-Shepard helix used in music psychology for decades.
  • Speech: English vowels showed a degree of circularity in the mid-frequency range. While less uniform than music, the harmonic nature of vocal folds still creates a helical statistical structure.
  • Urban Noise: Environmental sounds (engines, sirens, saws) showed no helical structure. The manifold remained essentially a 1D line, confirming that the helix is a specific property of harmonic signals.

Sensitivity and Constraints

The success of the visualization is highly dependent on specific hyperparameters and preprocessing choices. Most notably, the shape is sensitive to the number of neighbors ($K$) used in the graph construction.

The effect of the neighbor parameter K on the manifold. Low K (left) preserves the local helical structure, while higher K (right) can introduce complex cross-connections that obscure the primary topology.

If $K$ is too small, the manifold may fragment; if it is too large, the algorithm captures complex musical intervals (like perfect fourths or fifths) that make the 3D visualization cluttered. Additionally, the helix only appears if the data is non-linearly compressed (e.g., log or cubic root mapping); using raw linear magnitudes fails to recover the topology, suggesting that the "human-like" perception of loudness is critical for discovering musical structure.

Future Directions

This unsupervised approach offers a new lens for bioacoustics, potentially allowing researchers to study the topological properties of animal vocalizations. Furthermore, it motivates the development of "pitch-aware" deep learning architectures, such as neural networks that utilize spiral-shaped convolutional kernels to better process harmonic data.

Summary updated

Abstract

To explain the consonance of octaves, music psychologists represent pitch as a helix where azimuth and axial coordinate correspond to pitch class and pitch height respectively. This article addresses the problem of discovering this helical structure from unlabeled audio data. We measure Pearson correlations in the constant-Q transform (CQT) domain to build a K-nearest neighbor graph between frequency subbands. Then, we run the Isomap manifold learning algorithm to represent this graph in a three-dimensional space in which straight lines approximate graph geodesics. Experiments on isolated musical notes demonstrate that the resulting manifold resembles a helix which makes a full turn at every octave. A circular shape is also found in English speech, but not in urban noise. We discuss the impact of various design choices on the visualization: instrumentarium, loudness mapping function, and number of neighbors K.
BibTeX
@misc{lostanlen2020learning,
  author = {Vincent Lostanlen and Sripathi Sridhar and Brian McFee and Andrew Farnsworth and Juan Pablo Bello},
  title = {{Learning the Helix Topology of Musical Pitch}},
  year = {2020},
  eprint = {1910.10246},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.10246},
}
Figure