EP26

EP26: The 1/f Law of Music

Power spectral density S(f)∝1/fᵅ, Hurst exponent H, fractal dimension
6:55 Harmonic AnalysisNonlinear Dynamics

Overview

Take Bach, Jay Chou, Taylor Swift, and a segment of random noise, and feed all four through a spectrum analyser. Three centuries of stylistic difference nearly vanish in a single graph. That is the counterintuitive fact at the centre of this episode: across wildly different genres and eras, the power spectral density of pitch sequences tends to fall off as with . It is not an iron law, but it is a statistical regularity that recurs with striking consistency.

This episode derives the mathematical machinery needed to make that statement precise. Starting from the Wiener–Khinchin theorem — the bridge between autocorrelation and power spectrum established in EP02 (Fourier analysis) — we define the spectral exponent , connect it to the Hurst exponent of fractional Brownian motion, and interpret the fractal dimension in the context of melodic curves. We close with the 1991 PNAS result of Hsu & Hsu, who showed that Bach’s C-major invention exhibits self-similarity across three distinct time scales. The episode builds on the fractal and long-range-dependence ideas introduced in EP13 (fractal rhythm and polyrhythm) .

中文: “把巴赫、周杰伦、Taylor Swift,和一段随机噪声,一起送进频谱分析器。你会看到一件反直觉的事:三百年的风格差异,几乎消失了。”


Prerequisites


Definitions

Definition 26.1 (Power Spectral Density)

Let be a wide-sense stationary random process with autocorrelation function

The power spectral density (PSD) of the process is defined as the Fourier transform of :

If is linear in on a log-log plot, i.e.,

then the process is called a power-law spectral process, and the slope is called the spectral exponent.

Three canonical cases:

  • : white noise — equal energy at all frequencies
  • : pink noise (1/f noise)
  • : Brownian (red) noise

Working example — constructing the PSD of a pitch sequence: Take a melody and map pitches to an integer sequence in semitones . Compute the discrete Fourier transform , and estimate the power spectrum as , where Hz (assuming one note per sample). Perform linear regression on on a log-log plot; the negative of the slope is the estimate .

中文: “真正像音乐的,常常落在中间那个刚好的区间……很多音乐里,阿尔法接近一。它不是绝对法则,却是被频繁观察到的统计倾向。”

The following script reproduces the three noise PSD curves on a single log-log plot, making the slope difference between white, pink, and brown noise immediately visible.

Power Spectral Density S(f) ∝ 1/fᵅ — white, pink, brown noise
Power Spectral Density S(f) ∝ 1/fᵅ — white, pink, brown noise

Definition 26.2 (Hurst Exponent)

Let be a stochastic process. If for all the process satisfies self-similarity:

(equality in distribution), then is called the Hurst exponent of the process.

  • : standard Brownian motion (independent increments, no memory)
  • : persistent — a past upward trend makes a future upward trend more likely
  • : anti-persistent — a past upward trend makes a future downward trend more likely

Working example — empirical estimation via R/S analysis: For a time series of length , divide the series into segments, compute the ratio of the range to the standard deviation for each segment, so that . Regress on ; the slope is the estimate . A typical value for Bach’s melodies is , while white noise gives .

The following script implements R/S analysis on three simulated pitch sequences and visualises both the log-log regression lines and the relationship.

Hurst exponent estimation via R/S analysis on a melodic pitch sequence
Hurst exponent estimation via R/S analysis on a melodic pitch sequence

Definition 26.3 (Fractional Brownian Motion)

Fractional Brownian motion (fBm) is a zero-mean Gaussian process satisfying

Its increments follow a normal distribution with variance . When the process reduces to standard Brownian motion.


Definition 26.4 (Long-Memory Autocorrelation Decay)

For a stationary-increment process, define the autocorrelation function at discrete lag as

If as , then the process is said to have long memory (long-range dependence). Note:

  • When , , and the series diverges — genuine long memory
  • When , for all — no memory (white noise)
  • When , converges to a negative value — short memory, anti-persistent

Main Theorems

Theorem 26.1 (Wiener–Khinchin Theorem)

Let be a mean-square integrable wide-sense stationary random process whose autocorrelation function is absolutely integrable. Then the Fourier transform of exists and equals the power spectral density:

The inverse transform recovers the autocorrelation:

In particular, the total power satisfies .

Proof.

Non-negativity: For any finite-energy function ,

where the last step uses the convolution theorem. Since the expression is non-negative for any , it follows that a.e.

Transform pair: By the absolute integrability of , the Fourier transform

exists and is continuous (Riemann–Lebesgue lemma). The inverse Fourier transform gives

Setting : , i.e., total power equals the integral of the spectral density.


Theorem 26.2 (Power Spectral Density of Fractional Brownian Motion)

The power spectral density of the increment process (fractional Gaussian noise) of fractional Brownian motion satisfies

i.e., the spectral exponent is , and the relationship between the Hurst exponent and the spectral exponent is

For the three canonical cases:

  • (white noise):
  • (pink noise): (boundary case; see note in proof)
  • (Brownian noise): (corresponds to fBm itself, not its increments)
Proof.

Covariance computation: The covariance of fractional Gaussian noise is

For , Taylor expansion gives

so as (this is precisely the long-memory decay of Definition 26.4).

Fourier transform (continuous approximation): Substituting the continuous version of the covariance function into the Wiener–Khinchin theorem and using the Fourier transform formula for fractional powers,

with (valid for and ), we obtain

i.e., , hence .

Boundary case note: As , , but strictly corresponds to a degenerate process (linear trend) with perfect positive correlation. In music analysis, one typically works with , corresponding to ; the pink-noise regime corresponds to values of near this boundary.


Theorem 26.3 (Long-Memory Autocorrelation Decay)

Let be fractional Gaussian noise with . Then the normalised autocorrelation function satisfies

The series (long memory), and

i.e., the spectral density diverges at — low frequencies dominate and large-scale structure persists.

Proof.

Decay rate: From the proof of Theorem 26.2, . Applying the second-order Taylor expansion to as :

Hence , and after normalisation (when the variance is finite).

Series divergence: For , the exponent , so by comparison with the integral:

By the comparison test, .


Theorem 26.4 (Fractal Dimension and the Hurst Exponent)

The Hausdorff dimension of the trajectory of fractional Brownian motion on , viewed as a planar curve, is

Specifically:

  • : , the path almost fills the plane (extremely rough)
  • : , the path of standard Brownian motion
  • : , the path approaches a smooth curve (nearly regular)
Proof.

Sketch proof (via box-counting dimension):

Cover the trajectory with boxes of side length .

Divide into segments each of length . In the -th segment, the typical vertical variation is

(by the self-similarity of fBm).

The number of vertical boxes needed to cover the -th segment of the trajectory is approximately . The total box count is therefore

By the definition of box-counting dimension, .

For the rigorous proof matching the upper and lower Hausdorff dimension bounds, see Falconer (1990) §16.1.


Numerical Examples

Intuitive comparison of the three noise types:

Noise type Musical analogy
White noise 0 1/2 3/2 Each note completely random, like rolling a die
Pink noise 1 ≈1 ≈1 Slow-varying structure coexisting with rapid detail
Brownian noise 2 3/2 1/2 Drunkard’s walk, slow drift, no sense of direction

Spectral exponent estimation (Voss & Clarke 1975 style): For a melody of notes, treat MIDI pitch numbers as a time series. A white-noise melody yields a regression slope of approximately ; Bach fugues give estimates in the range ; pop music gives approximately .

Hsu & Hsu (1991) three-scale self-similarity: For Bach’s C-major invention:

  • Scale 1 (adjacent notes): Pitch fluctuation from note to note, standard deviation ≈ 2.1 semitones
  • Scale 2 (within a phrase): Fluctuation of grouped note averages within a phrase, standard deviation ≈ 2.0 semitones (after rescaling)
  • Scale 3 (section level): Contour of averaged sections, standard deviation ≈ 1.9 semitones (after rescaling)

The statistical shape at all three scales is nearly identical — empirical evidence of fractal self-similarity.

The following script synthesises a 1/f pitch sequence and renders its profile at three nested temporal scales, reproducing the Hsu & Hsu self-similarity observation.

Self-similar pitch profile at three temporal scales (Hsu & Hsu 1991)
Self-similar pitch profile at three temporal scales (Hsu & Hsu 1991)

中文: “把时间轴先拉近,你看到相邻音符之间有起伏。再退远一点,一个乐句内部的起伏,看起来仍然像刚才那张轮廓。再退到更大的段落层级,整体走势居然还保留着类似的粗糙感。”


Musical Connection

音乐联系

The balance between order and novelty

Why is the “sweet spot” musically? From the autocorrelation perspective:

  • When , for all — the past has no influence on the future; the melody is like rolling a die and the listener cannot follow a direction
  • When , decays very slowly and the past almost determines the future — the melody drifts indefinitely and loses the possibility of meaningful turns
  • When , — the past leaves a trace, but its influence decays as a power law with lag; the listener can feel both “continuation” and “that the turn was meaningful”

This balance point recurs across composers, styles, and instrumentation, suggesting it may reflect an intrinsic preference of the human cognitive system for sequential prediction — which is precisely the direction that

EP25’s prediction-error framework

and

EP27’s applied analysis

continue to explore.

Contrast with fractal rhythm (EP13)

EP13’s fractal rhythm

studied self-similarity in percussive time series — structures such as the Clave rhythm and the Cantor set repeating along the time axis. This episode studies self-similarity in melodic pitch sequences. Both use the same mathematical tools (Hurst exponent, fractal dimension), but they act on different signal dimensions: EP13 concerns when a sound occurs, while EP26 concerns which sound occurs.

Historical significance of Voss & Clarke and Hsu & Hsu

Voss & Clarke (1975) were the first to report the 1/f spectral characteristic of music in Nature, analysing the loudness and pitch of classical radio broadcasts. Hsu & Hsu (1991) subsequently introduced the fBm framework into single-piece analysis and demonstrated the three-scale self-similarity of Bach’s invention. These two works established the research tradition of “physicists analysing music,” and their conclusions were further corroborated in later large-corpus studies (Levitin et al. 2012).


Limitations and Open Questions

  1. Robustness of spectral exponent estimation: Log-log linear regression is sensitive to low-frequency noise. For short sequences ( notes) the estimation variance is large, and reported values in the literature span a wide interval (0.5 to 1.5). Welch’s method or multitaper spectral estimation can improve robustness, but no widely accepted standard practice has emerged for musical sequences.

  2. Dependence on pitch sequence definition: Quantising a melody to discrete MIDI integers discards microtonal information. For Indian classical music or Arabic maqam music, the standard equal-temperament quantisation scheme is itself a distortion, and the measured cannot be directly compared with values from Western music.

  3. Is the 1/f spectrum sufficient or merely necessary? is a statistical tendency observed in good music, but not a sufficient condition — one can synthesise a melody with that is completely devoid of musical quality. The spectral exponent captures only second-order statistics (variance structure) and says nothing about tonality, rhythm, or harmonic organisation.

  4. Causal interpretation of cross-scale self-similarity: The three-scale result of Hsu & Hsu is descriptive, not mechanistic. Whether this reflects a deliberate compositional strategy (a cognitive phenomenon) or the natural outcome of some generative process (a physical phenomenon) remains unresolved.

  5. Rhythm sequences vs pitch sequences: Most studies in the literature target pitch sequences; 1/f analysis of inter-onset interval sequences is less common and results are inconsistent (Rankin et al. 2009 found that rhythmic sequences are closer to white noise).

Conjecture (Cross-Cultural Universality of 1/f Statistics)

After controlling for scale structure (i.e., fixing the modal discretisation scheme), the spectral exponents of melodic pitch sequences from musical traditions around the world (West African polyrhythm, Indian classical, Arabic maqam, Japanese gagaku) will concentrate in the interval , and will differ significantly from the null hypotheses of white noise () and Brownian noise ().

Falsifiability criterion: If is found to fall statistically significantly outside for any tradition, or if the distribution peaks differ by more than 0.5 across traditions, the conjecture is falsified.


References

  1. Voss, R. F., & Clarke, J. (1975). “1/f noise” in music and speech. Nature, 258(5533), 317–318.

  2. Voss, R. F., & Clarke, J. (1978). “1/f noise” in music: music from 1/f noise. Journal of the Acoustical Society of America, 63(1), 258–263.

  3. Hsu, K. J., & Hsu, A. J. (1991). Self-similarity of the “1/f noise” called music. Proceedings of the National Academy of Sciences, 88(8), 3507–3509.

  4. Mandelbrot, B. B., & Van Ness, J. W. (1968). Fractional Brownian motions, fractional noises and applications. SIAM Review, 10(4), 422–437.

  5. Falconer, K. (1990). Fractal Geometry: Mathematical Foundations and Applications. Wiley. §16 (Dimensions of graphs and fractional Brownian motion).

  6. Beran, J. (1994). Statistics for Long-Memory Processes. Chapman & Hall. Ch. 2 (Spectral analysis and self-similar processes).

  7. Levitin, D. J., Chordia, P., & Menon, V. (2012). Musical rhythm spectra from Bach to Joplin obey a 1/f power law. Proceedings of the National Academy of Sciences, 109(10), 3716–3720.

  8. Rankin, S. K., Large, E. W., & Fink, P. W. (2009). Fractal tempo fluctuation and pulse prediction. Music Perception, 26(5), 401–413.

  9. Wiener, N. (1930). Generalized harmonic analysis. Acta Mathematica, 55, 117–258.

  10. Khinchin, A. (1934). Korrelationstheorie der stationären stochastischen Prozesse. Mathematische Annalen, 109(1), 604–615.

  11. Lowen, S. B., & Teich, M. C. (1993). Fractal renewal processes generate 1/f noise. Physical Review E, 47(2), 992–1001.

  12. Bak, P., Tang, C., & Wiesenfeld, K. (1987). Self-organized criticality: an explanation of 1/f noise. Physical Review Letters, 59(4), 381–384.

  13. Müller, M. (2015). Fundamentals of Music Processing. Springer. Ch. 3 (Music synchronization and tempo).