> "Clouds are not spheres, mountains are not cones, coastlines are not circles, and bark is not smooth, nor does lightning travel in a straight line."
In This Chapter
- 17.1 What Is a Fractal? — Self-Similarity, Mandelbrot, and the Geometry of Nature
- 17.1b The Mandelbrot Set: Infinity in a Formula
- 17.2 Self-Similarity in Music — Motives That Appear at Multiple Scales
- 17.2b The Multi-Level Hierarchy of Musical Time: A Listener's Guide
- 17.3 Pitch Fractals: 1/f Noise in Music — Richard Voss's Famous Finding
- 17.4 Rhythmic Fractals — Hierarchical Metric Structure, Rhythmic Self-Similarity in Bach and Reich
- 17.5 Melodic Self-Similarity — Bach's Melodic Development as Fractal Elaboration
- 17.5b Fractal Elaboration in Beethoven: The Fifth Symphony as a Case Study
- 17.6 The Cantor Set and Silence — How Mathematical Silence Patterns Resemble Rhythmic Gaps
- 17.7 Fractal Dimension and Musical Complexity — Measuring How "Complicated" a Melody Is
- 17.8 Algorithmic Composition with Fractals — Lindenmayer Systems and Musical Grammars
- 17.8b The Barnsley Fern and Generative Music
- 17.9 Natural Fractals and Their Music — The Music of Mountains, Coastlines, and Heartbeats
- 17.10 Fractal Analysis of Real Music — What Studies Have Found About Fractal Properties of Great Composers
- 17.10b Musical Scaling Laws: From Zipf to Pareto
- 17.11 Advanced Topic: Strange Attractors and Musical Phase Space
- 17.12 Thought Experiment: Compose a Melody Using Only Fractal Rules — Would It Be Recognizably Musical?
- 17.13 Theme 3 Checkpoint: Fractal Constraints and Creative Freedom
- 17.13b Fractals in Music Therapy and Physiological Entrainment
- 17.13c The Concept of Musical Scale-Invariance: A Philosophical Examination
- 17.13d Minkowski Dimension and Musical Complexity: A Technical Aside
- 17.14 Summary and Bridge to Chapter 18
Chapter 17: Fractals, Self-Similarity & Musical Patterns
"Clouds are not spheres, mountains are not cones, coastlines are not circles, and bark is not smooth, nor does lightning travel in a straight line." — Benoit Mandelbrot, The Fractal Geometry of Nature (1982)
"The history of music is a history of discovery of self-similarity at ever finer time scales." — Richard Voss (attrib.)
17.1 What Is a Fractal? — Self-Similarity, Mandelbrot, and the Geometry of Nature
In 1975, the Polish-French mathematician Benoit Mandelbrot coined the word "fractal" to describe a class of geometric objects that classical Euclidean geometry could not handle. Euclidean geometry gives us circles, squares, triangles, and their higher-dimensional analogs. It gives us smooth curves and flat planes. It is the geometry of idealized, human-made forms.
But the actual world — the world of clouds, coastlines, trees, blood vessels, mountains, and lightning bolts — is not smooth. Zoom into the coast of Norway on a map, and you see jagged fjords. Zoom in further, and you see jagged rock formations within the fjords. Zoom further still, and you see jagged individual rocks. The jaggedness does not go away as you zoom in; it persists, scale after scale, in a pattern that looks statistically similar at every level. This is self-similarity, and it is the defining property of fractals.
Formally, a fractal is a geometric object with the property that its parts are, in some statistical sense, similar to the whole. The exact definition varies depending on the context — mathematicians require precise statements — but the intuition is clear: zoom in or zoom out, and you see the same kind of structure.
The Mandelbrot set is the most famous example. Defined by a simple iterative rule on complex numbers, it produces an infinitely complex boundary: a shape with self-similar features at every level of magnification. Features near the boundary of the Mandelbrot set contain miniature copies of the entire set, which themselves contain miniature copies, which themselves contain miniature copies — infinitely. This is exact, mathematical self-similarity, as opposed to the statistical self-similarity of natural objects.
The Cantor set is a simpler example. Start with the unit interval [0,1]. Remove the middle third, leaving [0,1/3] and [2/3,1]. Remove the middle third of each remaining piece, leaving four intervals. Continue removing middle thirds indefinitely. What remains after infinitely many removals is the Cantor set — an infinite collection of points with zero total length. Its defining property: every remaining piece is a scaled copy of the whole. This is perfect self-similarity at every scale.
The Sierpinski triangle divides a triangle into four smaller triangles, removes the central one, and repeats for each of the three remaining triangles. After infinite repetitions, the result is a shape with zero area but a well-defined fractal dimension.
💡 Key Insight: Fractal Dimension
Euclidean geometry uses integer dimensions: a line is one-dimensional, a plane is two-dimensional, a solid is three-dimensional. Fractal geometry reveals that many natural objects have non-integer dimensions — they are "more than" a line but "less than" a plane, or "more than" a plane but "less than" a solid. The Cantor set has dimension log(2)/log(3) ≈ 0.631. The Sierpinski triangle has dimension log(3)/log(2) ≈ 1.585. These fractional dimensions are not a paradox — they are a precise mathematical measurement of how "complicated" a self-similar structure is.
Mandelbrot's insight was that these mathematical objects, far from being pathological exceptions, are the geometry of nature. The branching structure of trees, lungs, river networks, and the vascular system are all approximately self-similar. So is the distribution of galaxies in the universe, on the largest scales. The world is fractal; classical Euclidean geometry is a useful approximation that happens to work for human-built objects.
And music? As we shall see in the sections that follow, music is deeply fractal as well — at the level of pitch, rhythm, melody, and large-scale form.
17.1b The Mandelbrot Set: Infinity in a Formula
Before we turn to music, let us spend a moment with the most famous fractal of all: the Mandelbrot set. It is generated by a formula of striking simplicity. For each complex number c, we ask: does the sequence z₀ = 0, z₁ = z₀² + c, z₂ = z₁² + c, z₃ = z₂² + c, ... remain bounded, or does it spiral off to infinity?
The Mandelbrot set is the set of all complex numbers c for which the sequence remains bounded. Its boundary — the edge between bounded and unbounded — is infinitely complicated: a fractal of infinite detail, with self-similar features (baby Mandelbrot sets, spirals, seahorse tails) appearing at every level of magnification.
The formula generating this infinite complexity — z → z² + c — requires only a squaring and an addition. Two mathematical operations. The resulting complexity is not put in by hand; it emerges from the iteration of a simple rule. This is the central message of fractal geometry: infinite complexity from simple rules.
For music, the analogous insight is: rich musical structure from simple generative rules. A canon is generated by one rule (delay and repeat). A fugue is generated by a handful of rules (subject, answer, stretto, augmentation). Sonata form is generated by a few principles (establish two themes, develop them, recapitulate in the home key). The simplicity of the rule does not limit the richness of the result; in many cases, it amplifies it.
This is the compositional paradox of fractals: more constraint can produce more complexity. The Mandelbrot set is not "freer" or "less constrained" than a circle — it is far more constrained (every point must satisfy the iterated quadratic). But the constraint produces infinite complexity rather than simplicity. Similarly, the constraint of a fugue subject produces more musical complexity (through the interactions of multiple voices subject to voice-leading rules) than unconstrained free composition. The constraint is the generator of complexity, not its enemy.
17.2 Self-Similarity in Music — Motives That Appear at Multiple Scales
A motive in music is the smallest recognizable musical unit — typically two to six notes with a characteristic melodic and rhythmic shape. Motives are the atoms of musical composition: the smallest building blocks from which larger structures are assembled.
In many great compositions, the motive is not just an atom from which larger structures are built — it is a fractal generator. The same shape, the same pattern of intervals and rhythms, appears at multiple time scales simultaneously: within individual measures, across groups of measures (phrases), across sections, and across the entire movement.
Consider Beethoven's Fifth Symphony again. The four-note motif (short-short-short-long, the famous "da-da-da-DUM") appears: - Within individual measures, as an immediate repetition - Across phrases, as a two-measure unit - Across the entire exposition, as a structural signal - In augmented form (four beats instead of one) in the development - As the rhythmic skeleton of the entire first movement's architecture
The motif is self-similar: the rhythmic shape of a single measure is reproduced (with appropriate scaling) in the phrase structure of an eight-measure group, which is reproduced in the section structure of the movement. Zoom in or out, and you encounter the same short-short-short-long pattern.
📊 Data/Formula Box: Self-Similarity in Music
| Time Scale | Approximate Duration | Self-Similar Element |
|---|---|---|
| Motif | 0.5 – 2 seconds | 4-note rhythmic/pitch pattern |
| Phrase | 8 – 30 seconds | Motif-derived melodic arc |
| Period | 30 – 120 seconds | Phrase-derived harmonic arc |
| Section | 2 – 10 minutes | Period-derived structural arc |
| Movement | 5 – 40 minutes | Section-derived large form |
The self-similarity is not always exact — it is typically statistical or approximate, like the self-similarity of a coastline rather than the exact self-similarity of the Mandelbrot set. But the structural parallel across scales is real, and it is one of the features that gives great music its sense of inevitable rightness: every level of scale seems to be doing the same essential thing.
This hierarchical organization is not unique to Western classical music. It appears in jazz improvisation (where a phrase may be a scaled-up version of a motif, and the chorus a scaled-up version of a phrase), in Indian classical music (where the alap, jod, and jhala sections move from slow ornamental exploration to faster development in a fractal-like acceleration), and in traditional West African music (where nested rhythmic patterns create self-similar structures across multiple time scales).
17.2b The Multi-Level Hierarchy of Musical Time: A Listener's Guide
When we say that music is self-similar across time scales, we are making a claim about something that listeners experience but rarely articulate: the fact that music is simultaneously happening at multiple time scales, and that the structure at each scale feels meaningful and coherent.
Consider a listener at a concert hall, hearing the first movement of a Brahms symphony for the first time. What is happening in their mind at different time scales simultaneously?
At the millisecond level (0.001–0.05 seconds): The auditory system is tracking individual cycles of sound waves, computing pitch, timbre, and spatial location. The listener is not conscious of this processing — it happens automatically in the cochlea and early auditory cortex.
At the note level (0.1–0.5 seconds): The listener hears individual notes and their immediate successors. Melodic contour (up or down), interval size, and rhythmic grouping emerge at this scale. The listener is beginning to build a prediction model for what comes next.
At the motif level (0.5–3 seconds): Short melodic ideas — the building blocks of the piece — become recognizable. The listener starts building a "vocabulary" of the piece's characteristic gestures. When a gesture recurs (even varied or transposed), the listener recognizes it.
At the phrase level (5–20 seconds): The listener hears how notes group into phrases and phrases into periods. Harmonic tension and release become audible. The listener tracks the harmonic narrative — where are we in the key, what has been destabilized, what is resolving?
At the section level (30 seconds–5 minutes): The listener perceives the large-scale formal structure — the exposition's two themes, the development's fragmentation and modulation, the recapitulation's return. At this scale, the listener is tracking a narrative of departure and return.
At the movement level (5–45 minutes): The listener perceives the completed arc of a single movement — how the opening set up a problem (tonic-to-dominant tension in the exposition), how the development complicated it, how the recapitulation resolved it (all themes now in the tonic). This is the complete narrative, the "sentence" of musical form.
At every one of these levels, the listener is tracking structure that is analogous to the structure at every other level: tension and resolution, departure and return, establishment of a norm and its variation. The self-similarity of music is not a curiosity — it is what makes it possible for human listeners to follow music at all these levels simultaneously, without being overwhelmed by cognitive complexity. The same basic processing — build a model, predict, evaluate, update — operates at every time scale, applied to the appropriate structural unit.
17.3 Pitch Fractals: 1/f Noise in Music — Richard Voss's Famous Finding
In 1975, physicist Richard Voss, working at IBM Research, published a finding that generated enormous excitement among scientists interested in music, complexity, and self-organization. Voss analyzed the power spectrum of music — a mathematical decomposition of the music signal that shows how much "power" (energy, variation) the music contains at each frequency of variation.
To understand what this means, think of pitch changes in music. Some pitch changes are fast (rapid ornaments, grace notes), some are medium-speed (melodic phrases), and some are very slow (gradual modulations across movements). If you analyzed how much pitch variation occurs at each time scale, you would be computing a power spectrum of the music's pitch sequence.
Voss found that for many types of music — across cultures and historical periods — the power spectrum of pitch changes follows a 1/f law: the amount of variation at a given rate of change is inversely proportional to that rate. Double the rate, halve the power. This relationship, plotted on a log-log scale, gives a straight line with slope -1, which is the signature of 1/f noise (also called "pink noise" or "flicker noise").
💡 Key Insight: 1/f Noise as the Middle Path
1/f noise sits precisely between two extremes: - White noise (random, uncorrelated): flat power spectrum (equal power at all frequencies). Neighboring notes are completely unpredictable. Maximum randomness. - Brown noise (randomly walking): power spectrum falls as 1/f². Each note is highly correlated with the previous one. A random walk: predictable in direction but not destination. - 1/f noise (pink noise): power spectrum falls as 1/f. Correlations exist at all time scales — a note tells you something about what notes will follow, but not too much.
Voss found that music occupies the 1/f region: correlated enough to be predictable and followable, random enough to maintain interest and surprise. This is not a coincidence — it appears to be a structural requirement for music to be engaging.
The 1/f property is itself a signature of self-similarity: if a process has the same statistical structure at all time scales, its power spectrum is a power law (and specifically 1/f for a particular degree of self-similarity). So Voss's finding can be rephrased: music is statistically self-similar in its pitch sequences — the statistical properties of how pitch changes over ten seconds are similar to how it changes over ten minutes, scaled appropriately.
⚠️ Common Misconception: 1/f Music Is Natural, White Noise Music Is Artificial
Voss showed that randomly generated 1/f pitch sequences sound more "music-like" than white noise sequences. But this does not mean that all 1/f sequences are good music, or that music is "nothing but" 1/f processes. The 1/f property describes a statistical pattern, not a compositional rule. Great music obeys the 1/f distribution on average while departing from it in specific, musically significant ways — those departures are the expressive content. The 1/f distribution is a necessary but not sufficient condition for music; it is the framework within which music operates, not the music itself.
What produces 1/f pitch statistics in music? Probably the hierarchical structure of musical form itself: motives, phrases, periods, sections, and movements create natural clusters of similar pitches at each time scale. The nested structure of musical form is itself fractal, and the 1/f pitch statistics are a consequence.
🔵 Try It Yourself: Generate Pink Noise and Compare
Find an online pink noise (1/f noise) generator (many are freely available). Listen to it for thirty seconds. Then listen to white noise for thirty seconds. Notice the difference: white noise sounds like a radio between stations — pure randomness with no structure. Pink noise sounds almost musical — there are hints of rhythm and pitch patterns, even though none was deliberately placed there. This is the 1/f property: the self-similar structure of pink noise gives it the statistical flavor of music without the actual compositional content.
17.4 Rhythmic Fractals — Hierarchical Metric Structure, Rhythmic Self-Similarity in Bach and Reich
Rhythm in music is organized hierarchically. Individual notes group into beats; beats group into measures; measures group into phrases; phrases group into sections. At each level, there is a characteristic time scale and a characteristic pattern of strong and weak moments.
This hierarchical organization is itself self-similar: the pattern of "strong beat, weak beat, weak beat" in a 3/4 measure is reproduced in a phrase structure of "main phrase, subsidiary phrase, subsidiary phrase," which is reproduced in a section structure of "exposition, development, recapitulation" (where the exposition is the "strong" section, the development is "weak" in the sense of unsettled, and the recapitulation partially restores the original balance). Zoom in or out on musical rhythm, and you encounter similar patterns of strong and weak at different time scales.
Bach's contrapuntal works exploit this hierarchical self-similarity with particular clarity. In a Bach fugue, the rhythmic structure operates at multiple levels simultaneously. At the finest level, individual voices move in eighth notes and sixteenth notes, creating rapid rhythmic activity. At the phrase level, the subject (the main theme of the fugue) defines a medium-tempo rhythmic arc. At the section level, episodes (passages without the full subject) alternate with entries of the subject, creating a large-scale rhythmic pattern of tension and release. And at the movement level, the overall arc from exposition through development to the final statements creates the largest rhythmic structure.
The fractal-like property is that the pattern "subject entry — episode — subject entry" at the phrase level is reproduced as "exposition — development — recapitulation" at the movement level. The subject entry is the "strong beat" of the fugal measure, as the exposition is the "strong beat" of the movement.
In a very different musical tradition, the composer Steve Reich created works in the 1970s that make rhythmic self-similarity explicit. "Music for 18 Musicians" (1976) uses a process of rhythmic augmentation and diminution across multiple layers: some instruments play rapid patterns while others sustain long-held chords, and the interaction of these layers creates rhythmic patterns at multiple scales simultaneously. The piece explicitly explores the idea that large-scale musical time and small-scale rhythmic time can share structural properties.
17.5 Melodic Self-Similarity — Bach's Melodic Development as Fractal Elaboration
Bach's melodic development technique has been analyzed by music theorists as a form of fractal elaboration. The basic idea: take a simple, stepwise melodic outline. Now fill in the spaces between the structural notes with melodic ornaments. Then fill in the spaces between those ornaments with further ornaments. The result is a melody that, at the fine scale, moves rapidly through ornamental figures, while at the coarse scale, traces a simple melodic arc.
This is exactly the structure of fractal curves. The Koch snowflake is constructed by taking an equilateral triangle, adding a smaller equilateral triangle to the middle of each side, then adding even smaller triangles to the new sides, and so on. The result is a curve with infinite length but finite area, whose fine-scale structure looks like its coarse-scale structure — self-similar.
Bach's melodic elaboration has the same character: zoom out to see the large arc, zoom in to see the ornamental filling, zoom in further to see the gracing of the ornaments. At each level, the melodic motion is step-wise or arpeggiated — the same basic shape, scaled down. This was not conscious fractal thinking on Bach's part (fractals as a concept were two centuries in the future), but it reflects the same mathematical structure: hierarchical elaboration that looks similar at every level of magnification.
💡 Key Insight: Fractal Elaboration vs. True Fractals
Musical self-similarity is, in most cases, statistical and approximate rather than exact and mathematical. A Bach melody is not a perfect fractal in the mathematical sense — it does not have a precise, constant fractal dimension, and the self-similarity breaks down at the finest and coarsest scales. But it has the statistical flavor of a fractal: a characteristic pattern of variation that repeats across multiple scales. This statistical self-similarity is sufficient to produce the psychological effects of fractal structures — a sense of coherence across scales, a feeling that the whole and its parts share the same character.
17.5b Fractal Elaboration in Beethoven: The Fifth Symphony as a Case Study
Beethoven's Fifth Symphony (1808) provides one of the most extensively analyzed examples of fractal-like motivic development in the Western canon. The entire first movement — all 502 measures of it — grows from a single four-note idea: three short notes and one longer note (G–G–G–E♭ in the famous opening statement). This is not merely repetition; it is a form of hierarchical elaboration that has genuine fractal properties.
Consider how the motif operates at different scales:
Scale 1 — Single measure (0.5–1 second): The basic four-note cell. It appears over 400 times in the first movement in various forms. At this scale, the motif is a rhythmic-melodic atom.
Scale 2 — Two-measure unit (2–4 seconds): Two statements of the motif, sometimes sequential (both starting on the same pitch), sometimes linked (one leading into the next by an interval). The two-measure unit is the basic phrase-building block of the exposition.
Scale 3 — Phrase (8–16 seconds): The opening eight measures consist of two waves of motivic repetition building to a fermata — a held chord that stops time. This is a phrase-scale version of the same short-long pattern: many short notes (the repeated motif) followed by one long moment (the fermata). The motif's rhythmic shape (short-short-short-long) is reproduced at the phrase scale.
Scale 4 — Section (1–2 minutes): The exposition can be divided into a "fate" section (dominated by the da-da-da-DUM motif) and a contrasting second theme — again, a short-short-short-long pattern at the section scale: three instances of the motif-dominated material leading to the longer, singing second theme.
Scale 5 — Movement (7–9 minutes): The entire movement follows a three-part structure (exposition, development, recapitulation) in which the development section — in which the motif is broken down and transformed — corresponds to the "short notes" (fragmented, unstable, energetic), and the recapitulation — in which the motif returns triumphantly with a new, slower interlude — corresponds to the "long note" (stable, resolved, home).
This five-level hierarchy of self-similar structures is what gives the Fifth Symphony its extraordinary sense of formal coherence and relentless momentum. Every level of the structure is doing the same thing: generating tension through brief, repeated events and releasing it through a longer, decisive moment. Zoom in or out, and the same structure appears. This is not a perfect mathematical fractal, but it is the strongest case in the classical repertoire for genuine multi-scale self-similarity in large-scale musical form.
17.6 The Cantor Set and Silence — How Mathematical Silence Patterns Resemble Rhythmic Gaps
The Cantor set, described in section 17.1, is remarkable for what it lacks as much as what it contains. After infinitely many removals of middle thirds, what remains is a "dust" of points — an infinite number of points, but with zero total length. The Cantor set is as much about the removed intervals (the "gaps" or "silences") as about the remaining points.
This structure has a striking musical analog. Consider a rhythm that consists of notes at the endpoints of the Cantor set's construction: notes on beats that survive the removal process, silence on beats that are removed. The first iteration gives notes on the first and last third, silence in the middle. The second iteration subdivides, with further silences added. The resulting rhythmic pattern has a self-similar structure of silences: each remaining active region contains the same ratio of notes to silence, at every level of subdivision.
John Cage, the twentieth-century composer most associated with silence in music, explored the musical implications of such structures. Cage was interested in the idea that silence was not the absence of music but a kind of music in itself — a way of framing and articulating the sounds that occur within it. His 4'33" (1952), in which a performer sits at a piano for four minutes and thirty-three seconds without playing, is the most famous example: the "music" is the ambient sounds of the environment, framed by the deliberate silence.
The Cantor-set structure suggests a more specific way of thinking about silence: if the gaps in a rhythm are self-similar — if the structure of silence at every time scale looks like the structure of silence at every other scale — then silence becomes a positive structural element rather than a mere absence. The rhythm "breathes" at all scales simultaneously.
🔵 Try It Yourself: Listen for Structural Silence
Listen to the opening of Anton Webern's Variations for Orchestra, Op. 30. Notice how the silences between notes are not arbitrary gaps but are themselves structured — each silence is surrounded by notes that define its temporal extent, and the silences seem to have a musical function similar to the notes. Can you identify a self-similar structure in the alternation of notes and silences? This is music that treats silence as its primary material, with notes as ornaments to the silence rather than vice versa.
17.7 Fractal Dimension and Musical Complexity — Measuring How "Complicated" a Melody Is
If fractals have non-integer dimensions, can we assign a fractal dimension to a melody? The answer is yes — with some important caveats about what we mean.
For a melodic line treated as a curve in pitch-time space (time on the horizontal axis, pitch on the vertical axis), the fractal dimension is a measure of how "jagged" or "space-filling" the curve is. A simple, smooth melody — one that moves stepwise with few large leaps — has a fractal dimension close to 1 (like a smooth line). A highly chromatic melody with frequent large leaps — one that zigzags rapidly through pitch space — has a fractal dimension closer to 2 (approaching the space-filling limit of a plane).
Music theorists and psychologists have measured the fractal dimension of melodies from different composers and historical periods, with interesting results: - Simple folk melodies have low fractal dimension (close to 1.0–1.1) - Bach melodic lines typically fall in the range 1.2–1.5 - Romantic-era melodies (Brahms, Schubert) tend toward 1.3–1.6 - Early twentieth-century atonalists (Schoenberg, Webern) reach 1.7–1.9 - Random pitch sequences (white noise) have fractal dimension close to 2.0
These measurements are consistent with Voss's 1/f finding: music occupies a middle ground between total predictability (low dimension) and total randomness (high dimension). And they suggest that the fractal dimension of a melody could serve as an objective measure of its "complexity" — one that does not depend on cultural knowledge of music theory, only on the geometric properties of the pitch-time curve.
This is potentially profound: if different cultures, different historical periods, and different genres of music all tend toward similar fractal dimensions, that would suggest that fractal structure is not a cultural preference but a cognitive constraint — something about the way human brains process musical information that requires a specific range of complexity.
17.8 Algorithmic Composition with Fractals — Lindenmayer Systems and Musical Grammars
The mathematician Aristid Lindenmayer developed a formal system in 1968, now called an L-system or Lindenmayer system, to model the growth of plants. The system starts with a "seed" — a single symbol or short string of symbols — and applies a set of production rules repeatedly, replacing each symbol with a string of new symbols. The result after many iterations is a long string that encodes complex, self-similar structure.
For example, the simple L-system with seed "A" and rules A → AB, B → A generates the sequence: - Iteration 0: A - Iteration 1: AB - Iteration 2: ABA - Iteration 3: ABAAB - Iteration 4: ABAABABA - ...
The lengths of these strings are 1, 2, 3, 5, 8, 13... — the Fibonacci sequence. And the string at each level contains the previous level as a prefix — it is self-similar. If we map the symbols A and B to musical pitches or rhythmic values, the resulting sequence has self-similar musical structure at every level.
Composers have used L-systems to generate musical sequences with fractal properties. The German composer Karlheinz Stockhausen, though not using L-systems explicitly, created works like Kontakte (1960) in which the same structural principles are applied at the level of individual notes, of phrases, of sections, and of the entire piece — a compositional L-system, applied at multiple levels simultaneously.
More recently, algorithmic composers have developed software tools that generate music using L-system rules, fractals, and other self-similar generative processes. The resulting music has a recognizably "organic" quality — it sounds like something between nature and human composition, with the self-similar structure of natural growth processes but the pitch organization of Western music.
⚠️ Common Misconception: Algorithmic Fractal Music Is the Same as Regular Music
Fractal algorithms can generate music that sounds plausible at first hearing. But sustained listening reveals a characteristic limitation: algorithmic fractal music tends to lack the goal-directedness of human-composed music. A fractal grows in all directions equally; great music points somewhere. The self-similar structure of Bach or Beethoven is constrained by harmonic and expressive goals — the fractal elaboration is always in service of a destination. Pure fractal algorithms have no destination; they elaborate endlessly without direction. This is the difference between self-similarity as a constraint and self-similarity as a purpose.
17.8b The Barnsley Fern and Generative Music
The Barnsley fern — named after mathematician Michael Barnsley, who described it in 1988 — is one of the most striking examples of a fractal generated by a simple set of rules called an Iterated Function System (IFS). The fern is produced by repeatedly applying four simple transformations to points in the plane, with specific probabilities for each transformation. Starting from any point and applying the transformations randomly, the trajectory of the point traces out the entire fern shape — with fronds, sub-fronds, and sub-sub-fronds that all look like scaled copies of the whole.
The mathematical insight here is that enormously complex visual forms can be generated by very simple rules applied repeatedly. The "algorithm" is compact; the "output" is visually rich. This is the fractal analog of Kolmogorov complexity minimization: a tiny program generating a vast, detailed output.
Applied to music, the IFS framework allows composers to create musical structures of arbitrary complexity from very simple rules: - Each "transformation" in the IFS maps one musical state (pitch, duration, dynamic) to another - The probability of each transformation determines the statistical frequency of musical events - Repeated application generates a musical sequence that is self-similar at all scales
Unlike L-systems (which are deterministic), IFS-based music generation is probabilistic: each hearing of the piece could be different, because the sequence of randomly chosen transformations is not fixed. This creates a kind of "controlled improvisation" — the overall character of the music is determined by the IFS rules, but the specific sequence changes each time.
Composer Gary Lee Nelson has explored IFS-based composition, and the American composer Charles Dodge worked with self-similar processes in pieces like The Story of Our Lives (1974), where spoken text and musical events are organized by self-similar temporal processes.
The philosophical implication of IFS composition is interesting: if an enormously complex musical work can be generated by four simple rules and a random process, in what sense does the composer "create" the work? The composer chooses the rules (the IFS parameters); the random process generates the specific sequence. The composer is the architect of the generative system, not the sculptor of the specific result. This is a form of composition that fundamentally changes the relationship between composer intention and musical output — and anticipates by several decades the questions raised by AI-generated music.
17.9 Natural Fractals and Their Music — The Music of Mountains, Coastlines, and Heartbeats
If we were to "sonify" (convert to sound) the profiles of various natural fractal objects, what would they sound like? This is not a merely fanciful question: scientists use sonification as an analytical tool, and the results reveal something about the relationship between musical structure and natural structure.
Mountain profiles: The profile of a mountain range, analyzed as a one-dimensional height function, has approximately 1/f^β power spectrum with β between 1.5 and 2.5, depending on the geological history of the range. Sonifying mountain profiles gives melodies with moderate correlation between adjacent notes — similar to slow melodic phrases with large-scale arcs and medium-scale undulations. Some composers have done exactly this: Iannis Xenakis used random processes with specific power spectra (including 1/f variants) to generate the pitch sequences in his stochastic compositions.
Heartbeat variability: The intervals between heartbeats in a healthy resting heart are not perfectly regular — they fluctuate slightly in a way that is neither completely random nor completely periodic. Analysis reveals that these fluctuations are approximately 1/f: the heart's rhythm is self-similar across multiple time scales. Strikingly, heart disease and aging tend to reduce this fractal complexity, making the heartbeat more regular (lower fractal dimension) rather than more irregular. Health, at the level of cardiac rhythm, is associated with 1/f fractal structure.
This suggests a profound parallel: both music and healthy biological rhythms tend toward 1/f structure. Is this coincidence, or does it reflect something about the optimal range of complexity for systems that need to be both coherent and adaptable?
Coastlines and pitch: The fractal dimension of a coastline varies between about 1.05 (smooth, like mainland Australia's southern coast) and 1.25 (jagged, like the coast of Norway's fjords). Sonifying coastline profiles produces melodies with corresponding fractal dimensions. Norwegian coastline music is more chromatic and leaping; Australian coastline music is smoother and more stepwise. No coastline gives a melody with fractal dimension as high as random noise or as low as a perfectly smooth line — they all occupy the musically interesting range.
💡 Key Insight: The Universe Has Musical Structure
The 1/f finding, applied to natural objects, suggests that the universe itself — at least in its complex, nonlinear systems — organizes information in ways that are statistically similar to music. This is not mysticism: it is a mathematical observation that many physical systems, biological systems, and musical systems share the same power-law statistics. Whether this reflects a deep universal principle (complex systems self-organize toward criticality, which produces 1/f statistics) or a cognitive fact (we call things "music-like" when they have 1/f statistics because our brains are tuned to that range) is an active research question.
17.10 Fractal Analysis of Real Music — What Studies Have Found About Fractal Properties of Great Composers
Since Voss's 1975 finding, a substantial body of research has applied fractal analysis to music from many composers, periods, and cultures. The results are illuminating, though not without controversy.
Composer comparisons: Studies have found that the fractal dimension of pitch sequences varies among composers in ways that correlate with perceived musical complexity. Bach and Mozart tend to have intermediate fractal dimensions in their pitch sequences — self-similar but not extreme. Romantic composers like Brahms and Mahler have slightly higher dimensions, corresponding to greater melodic range and more complex interval patterns. Early twentieth-century atonalists have the highest dimensions, approaching (but not reaching) the maximum of random sequences.
Cultural comparisons: Cross-cultural studies have found that the 1/f pitch statistics appear in music from many cultures: Western classical, Western popular, Indian classical, Chinese traditional, West African drumming, and others. The specific parameters of the power law vary — some cultures' music has steeper power spectra than others — but all fall in the 1/f range, not the white noise range or the brown noise range. This suggests that 1/f structure may be a universal feature of music.
The genius question: Some studies have asked whether the music of composers considered "great" (by whatever criteria) has more fractal structure than the music of composers considered "lesser." The results are mixed. Some measures of fractal structure are higher in Bach and Beethoven than in their contemporaries; others show no significant difference. The safest conclusion is that fractal structure is a necessary but not sufficient condition for musical greatness — you need it, but having it does not guarantee anything.
Limitations: Fractal analysis of music is technically challenging. Music is a multidimensional signal (pitch, duration, dynamics, timbre, etc.), and different dimensions may have different fractal properties. Most studies have analyzed only pitch or only rhythm. The choice of analysis method (box-counting dimension, Hurst exponent, power spectrum analysis) affects results. And the relevant time scale range matters: the fractal property must be tested across the appropriate range of scales to give meaningful results.
17.10b Musical Scaling Laws: From Zipf to Pareto
One of the most striking quantitative regularities in natural language is Zipf's Law: if you rank all the words in a large corpus by frequency, the frequency of the n-th most common word is proportional to 1/n. The most common word appears twice as often as the second most common, three times as often as the third most common, and so on. This power-law relationship is a signature of the same scale-invariant structure that produces fractal geometry and 1/f noise.
Zipf's Law turns out to apply to music as well — with some modifications. If you rank all the melodic intervals in a composer's output by frequency, the distribution follows a power law: the most common interval (typically the unison or step-wise motion) is far more frequent than less common intervals, with the frequency falling off roughly as a power law of the rank. Longer, more unusual intervals are exponentially rarer than short, common ones.
This Zipfian distribution in melodic intervals has been found across many composers and many musical traditions. It is another manifestation of the 1/f / fractal character of music: the distribution of events across categories (interval sizes) has the same scale-invariant power-law character as the distribution of events across time.
The cultural relevance is significant. Different musical cultures have different Zipfian parameters — different power-law exponents for their interval distributions. Western common-practice music is strongly stepwise (the exponent is steep: step-wise intervals are very dominant). Certain melodic traditions (some types of jazz, some forms of flamenco) have flatter exponents, reflecting a more balanced distribution across interval sizes. This provides a quantitative characterization of melodic style that can be compared across cultures and periods.
The Zipfian distribution of musical events raises a question: why does music follow Zipf's Law? In language, Zipf's Law is thought to reflect a tension between the communicator's desire for brevity (using common, short words) and the listener's desire for specificity (requiring uncommon, precise words). In music, the analogous tension might be between the composer's desire for smooth, easy-to-follow melodies (stepwise motion is most coherent) and the listener's desire for variety and surprise (unusual intervals are more informative). The power-law distribution achieves a balance between these competing pressures — maximizing information while minimizing the cognitive load of tracking unusual events.
17.11 Advanced Topic: Strange Attractors and Musical Phase Space
🔴 Advanced Topic: Strange Attractors and Musical Phase Space
In dynamical systems theory, a phase space is an abstract space in which every point represents a complete state of the system — all the information needed to describe what the system is doing at a given moment. For a pendulum, the phase space is two-dimensional (position and velocity). For a musical system, one can define a phase space in which each point represents the musical "state" at a given moment: current pitch, current tempo, current dynamic level, and so on.
A strange attractor is a fractal set in phase space toward which a dynamical system tends to evolve. The system's trajectory in phase space winds around the attractor indefinitely, never exactly repeating, but always staying within the attractor's bounded fractal region. The Lorenz attractor — discovered by meteorologist Edward Lorenz in 1963 while modeling atmospheric convection — is the most famous example: a butterfly-shaped fractal in three-dimensional phase space, with a fractal dimension of approximately 2.06.
Musical scholars have proposed that the "phase space" of a musical piece — the space of all the states the music can occupy — might have the structure of a strange attractor. A piece of music never exactly repeats (the same notes in the same order at the same tempo), but it also does not drift arbitrarily far from its characteristic "style" or "character." It orbits around a region of style-space without settling into a fixed cycle.
If true, this would mean that musical style is a fractal attractor: a bounded, self-similar region of musical possibility that the composer or performer navigates, never exactly repeating but always constrained by the attractor's shape. Different composers would have different attractors — different regions of style-space, with different fractal dimensions.
This framework is mathematically suggestive but difficult to test empirically, because defining the relevant musical phase space and measuring trajectories within it requires solving hard problems of musical representation. It remains a productive metaphor rather than an established theory.
17.12 Thought Experiment: Compose a Melody Using Only Fractal Rules — Would It Be Recognizably Musical?
🧪 Thought Experiment: The Fractal Melody
You have been given the following compositional constraint: your melody must be generated by a fractal rule. Specifically, you choose a starting interval — say, an ascending major third (4 semitones). Your melody is generated by the rule: wherever you would play the interval X, replace it with the pattern "half of X, then X, then half of X." So the major third becomes: major second (up), major third (up), major second (up). Apply this rule three more times to generate a melody of rapidly increasing complexity and self-similar structure.
Now consider: is this melody recognizably musical? A few observations:
First, it has the 1/f property by construction — the repeated application of the halving rule creates shorter intervals at higher frequencies, giving the pitch sequence a fractal power spectrum.
Second, it has clear hierarchical structure — the large-scale shape is a rising arc (the original interval), and the fine-scale shape is a complex ornamental figure (the result of four iterations). This is the hallmark of fractal elaboration.
Third, it has no harmonic context — the notes are defined purely by intervals, without regard for a tonic, a scale, or a chord progression. To a Western ear trained in tonal music, it may sound neither quite tonal nor quite atonal — a strange hybrid.
Fourth, it has no expressive direction — it does not "point" anywhere in particular. It elaborates without destination.
The result of this thought experiment is the same as the result of the symmetry-only composition experiment in Chapter 16: the fractal rules produce structure, but they do not by themselves produce meaning or expression. They create the framework within which music can happen — the necessary conditions for musical coherence — without creating musical meaning by themselves. A composer who understands fractal structure can use it as a tool, the way Bach used counterpoint rules: as a constraint that focuses creativity rather than replaces it.
17.13 Theme 3 Checkpoint: Fractal Constraints and Creative Freedom
The recurring theme of constraint and creativity appears in fractal music in a particularly clear form. The fractal constraint — the requirement that musical structure repeat at multiple scales — is, if anything, more demanding than the symmetry constraint of Chapter 16. Symmetry requires the same pattern at one scale, transformed in some way. Fractality requires the same pattern across all scales, self-similarly nested.
And yet, this extreme constraint does not prevent musical expression — it focuses it. Bach's melodic elaboration is fractal precisely because it is always in service of a harmonic goal. The self-similar ornamental structure exists to make the large-scale tonal motion expressive and inevitable, not as an end in itself.
Steve Reich's minimalist structures are fractal in a different way: the gradual phase-shifting and augmentation of his processes create self-similar patterns at multiple time scales, but again, the fractal structure is a vehicle for a specific aesthetic experience — the hypnotic transformation of perception over long time spans.
In both cases, the fractal constraint provides the architecture within which expressive freedom is exercised. The composer does not need to invent a new structure at every scale — the fractal rule generates the structure. The creative work is in choosing the right seed, the right rule, and the right moments to break the rule for expressive effect.
✅ Key Takeaway: Fractal Structure as Musical Architecture
Fractal self-similarity in music — whether in pitch statistics (the 1/f property), in melodic elaboration (hierarchical ornament), in rhythmic structure (nested metric organization), or in large-scale form — provides a structural architecture that operates at all time scales simultaneously. This multi-scale coherence is one of the properties that distinguishes great music from merely competent music: you can listen at any time scale — from individual notes to entire movements — and encounter meaningful structure. Fractal structure is the mathematical expression of this multi-scale richness.
⚖️ Debate/Discussion: Do Fractal Patterns in Music Cause Its Aesthetic Appeal, or Is the Correlation Accidental?
The finding that music has 1/f statistics, and that artificially generated 1/f sequences sound more "music-like" than white noise, suggests that fractal structure is causally connected to musical appeal. But there are important objections:
Against causation: The correlation between 1/f structure and musical appeal might be an artifact of how music is made, not what makes it appealing. All music is created by human performers in real time, and 1/f statistics might simply be what human motor activity naturally produces — any piece of music played by a human will have 1/f statistics because playing is a fractal activity, not because listening requires it.
For causation: The cross-cultural universality of 1/f structure in music, and the finding that artificially generated 1/f sequences are judged as "better" music than white noise or brown noise sequences even by trained musicians, suggests that the 1/f property is genuinely relevant to musical perception, not just production.
A third possibility: Both music's 1/f statistics and its aesthetic appeal are caused by a common third factor: the cognitive architecture of human perception. Brains that detect patterns at multiple time scales simultaneously will prefer stimuli that have structure at multiple scales. Music has evolved to match this preference, giving it 1/f statistics. The 1/f structure is both a cause and an effect — a product of cognitive preferences and also an input to them.
This is ultimately an empirical question, and the research is ongoing. What is your intuition, and what evidence would change your mind?
17.13b Fractals in Music Therapy and Physiological Entrainment
An unexpected application of fractal analysis in music has emerged from the field of music therapy and biofeedback research: the relationship between the fractal properties of music and the physiological systems that process it.
The human body has numerous physiological rhythms: heart rate, respiratory rate, EEG oscillations, gait rhythm, circadian cycles. As mentioned in section 17.9, the healthiest versions of these rhythms have approximately 1/f statistical character — they are fractal, with correlations across multiple time scales. This multi-scale correlation is thought to reflect the adaptive flexibility of healthy physiological systems: a system that responds appropriately to perturbations at all time scales needs to have memory at all time scales.
Research groups at Harvard, MIT, and several European universities have found that the fractal character of music may influence these physiological rhythms through a process called entrainment — the synchronization of one oscillatory system with another. When a listener's physiological rhythms entrain to music, the fractal character of the music may be "imported" into the physiological system, either increasing or decreasing the fractal complexity of the physiological rhythm.
Specific findings: - Patients with Parkinson's disease, whose gait rhythm has reduced fractal complexity (becoming more regular and periodic), show improved gait measures when walking to music with approximately 1/f rhythmic structure, compared to more periodic or random music. - Cardiac patients in ICU settings show improvements in certain heart rate variability measures when exposed to music with 1/f spectral structure compared to white noise or silence. - Neonatal patients in intensive care show more stable physiological patterns when exposed to lullabies than to white noise — consistent with the hypothesis that the organized, 1/f character of music helps entrain and stabilize immature physiological control systems.
These findings are preliminary and often involve small samples. The therapeutic applications should not be overstated. But they point toward a fascinating possibility: that the fractal structure of music is not just aesthetically relevant but biologically relevant — that music may literally help organize the body's physiological systems in healthier, more adaptive patterns.
This would be a remarkable connection: the mathematical structure of music (1/f self-similarity) matching the mathematical structure of healthy biology (1/f variability), with a plausible mechanism (physiological entrainment). If confirmed, it would suggest that music's universality is not merely cultural — it may reflect a biological alignment between musical structure and the organizing principles of the human body.
17.13c The Concept of Musical Scale-Invariance: A Philosophical Examination
Throughout this chapter, we have used the term "self-similarity" and "scale-invariance" to describe the property of music that looks statistically the same at different time scales. Let us pause to examine this claim more carefully, because it is both illuminating and, if taken too literally, potentially misleading.
What "scale-invariance" means precisely: A process is scale-invariant if its statistical properties are unchanged when the time axis is rescaled by a constant factor. A 1/f process is scale-invariant because its power spectrum (which describes the statistics of fluctuations at different rates) has the same functional form after rescaling. A fractal is scale-invariant because it looks the same under magnification. Self-similarity and scale-invariance are mathematically precise concepts.
What "scale-invariance" means in music: When we say that music has scale-invariant self-similarity, we mean something more nuanced. We do not mean that a 4-note motif is literally a scaled version of a 4-measure phrase. We mean that certain statistical properties — the distribution of intervals, the pattern of tension and release, the balance between repetition and novelty — tend to be similar across different time scales.
This is a weaker claim than mathematical self-similarity, and it is important not to overstate it. Several things are NOT true of musical self-similarity: 1. Music does not look the same at all time scales. A listener cannot "zoom in" on a measure and find the same melodic content as the entire piece. 2. Musical self-similarity breaks down at the finest and coarsest scales. Individual notes are not miniature movements; a whole genre is not a scaled-up melody. 3. The self-similarity is statistical, not structural — it describes the distribution of events, not their specific identity.
The productive use of the concept: Despite these qualifications, the statistical self-similarity of music is a real and important property. It implies that music has been organized — by whatever compositional and cultural processes — to produce a specific kind of multi-scale regularity. This regularity is not arbitrary; it correlates with aesthetic quality, listener engagement, and cross-cultural universality. Understanding this regularity through the mathematical framework of fractals is genuinely illuminating, even if the connection is statistical rather than exact.
The lesson for music theory: fractal analysis provides a new set of questions to ask about music — questions about multi-scale structure, scale-invariant statistics, and the distribution of events across time — that complement traditional analysis focused on harmony, counterpoint, and form. Neither approach is complete alone; together, they provide a richer understanding.
17.13d Minkowski Dimension and Musical Complexity: A Technical Aside
For readers interested in the mathematics of fractal dimension, it is worth mentioning that there are several different ways to define "fractal dimension," and they do not always agree. The most commonly used definitions for musical analysis are:
Box-counting dimension (Minkowski dimension): Cover the pitch-time plane with a grid of boxes of size ε × ε. Count N(ε) = the number of boxes containing at least part of the melody. As ε → 0, N(ε) grows as ε^(-D), where D is the box-counting dimension. For a smooth curve, D = 1; for a space-filling path, D = 2.
Hausdorff dimension: A more technically precise definition that gives the same result as box-counting for "nice" fractals, but can differ for pathological cases. The Hausdorff dimension of the Cantor set is the same as its box-counting dimension: log(2)/log(3) ≈ 0.631.
Hurst exponent: For time series, the Hurst exponent H measures the degree of long-range correlation. H = 0.5 corresponds to white noise; H close to 1 corresponds to highly correlated processes. For a 1/f process, H ≈ 1. The fractal dimension of the time series is related to the Hurst exponent by D = 2 - H.
For musical melodies analyzed as pitch-time curves, box-counting dimension is the most natural measure. Studies typically find values in the range 1.1–1.9, with the specific value depending on the composer, period, and genre. These measurements must be interpreted carefully: the box-counting dimension depends on the range of scales over which it is measured, the resolution of the pitch and time axes, and the specific melodic material analyzed.
The technical complexity of fractal dimension measurement is one reason why claims about "the fractal dimension of Bach's music" should be read with some caution: the specific number depends on the measurement method, and different measurement methods can give different results for the same piece. The qualitative finding — that music's fractal dimension is intermediate between a smooth line and a random walk — is robust; the specific numerical values are more method-dependent.
17.14 Summary and Bridge to Chapter 18
Fractals and self-similarity illuminate music from a new angle. Where Chapter 16 asked about transformations that leave structure exactly invariant, Chapter 17 asks about structure that repeats approximately across scales — a looser and more pervasive kind of pattern.
Self-similarity in music appears at every level: motivic elaboration, phrase structure, large-scale form, and the statistics of pitch and rhythm sequences. The hierarchical organization of musical time — from individual note to movement — is fractal in character.
Richard Voss's 1/f finding (1975) showed that the pitch sequences of music have a power spectrum that falls as 1/f — the signature of fractal, self-similar processes. This places music between white noise (completely random) and brown noise (completely correlated) — in the region where structure and surprise coexist.
Fractal dimension provides an objective measure of melodic complexity that correlates with historical and cultural differences in musical style.
Algorithmic composition using L-systems and other fractal generative processes produces music with genuine self-similar structure, demonstrating that the fractal property is compositionally accessible — but also revealing that fractal structure without expressive goal is incomplete.
Natural fractals — mountains, coastlines, heartbeats — share the 1/f statistical structure of music, suggesting that this mathematical form is a universal property of complex, self-organizing systems.
Bridge to Chapter 18: Fractals tell us about the statistical structure of music — how ordered or disordered it is at each scale. But there is another way to measure the structure of music: information theory. How much information does a piece of music contain? How surprising is each note, given what came before? These questions — pursued by Claude Shannon in the late 1940s and applied to music by researchers ever since — are the subject of Chapter 18.
The connection between fractals and information theory is deep: a fractal process with dimension d carries a specific amount of information per unit length, and the 1/f property of music is equivalent to a specific information-theoretic statement about melodic predictability. Chapter 18 develops this connection and asks what music's information content tells us about what music is.
Chapter 17 exercises, quiz, case studies, and further reading follow in companion files.