What is generative music? From ambient records to a browser that plays itself
Most recorded music is the same every time you play it. Generative music is not. Its composer designs a system, a set of loops, rules or chances, and the system makes the music, a little differently each time. This essay follows the idea from an eighteenth-century dice game and tape pieces of the 1960s to Brian Eno's ambient records and apps, and to the browser, which can now make sound on its own, and ends with two places to hear it in Synfield.

Wind chimes are a small piece of music that nobody composed. In 1996 Brian Eno used them to explain what he meant by a new term. "Some very basic forms of generative music have existed for a long time, but as marginal curiosities," he wrote in the notes for Generative Music 1, which the software company Intermorphic reproduces on its website. "Wind chimes are an example, but the only compositional control you have over the music they produce is in the original choice of notes that the chimes will sound."
Someone chooses the notes. The wind does the rest. That is the basic idea of generative music: the composer designs the system, and the system makes the piece. This essay follows the idea through its history and ends with how it sounds in a browser. If you want the wider family of rule-based art, of which music is one branch, Interactive generative art, explained is a good companion.
Music as a system, not an object
In June 1996 Eno gave a talk on generative music at the Imagination Conference in San Francisco, published as a transcript by In Motion Magazine. In it he set out the difference as plainly as anyone has. "Classical music, like classical architecture, like many other classical forms, specifies an entity in advance and then builds it," he said. "Generative music doesn't do that, it specifies a set of rules and then lets them make the thing."
He did not present it as a strict opposition. "It's not either or," he added. "Music can be anywhere along a line between these two." What changes is where the composer's work goes: less into fixing every note, more into choosing the rules and, as Eno put it in the same talk, "what you feed into the system."
The word is recent. Eno was then working with Koan, software made by the British company SSEYO, and Intermorphic, which develops Koan's successor, Wotja, says he coined the term "generative music" during that period. The idea itself is much older.
Dice, modules and a pulse
In 1792 a Berlin publisher brought out a Musikalisches Würfelspiel, a musical dice game, and put Mozart's name on it, a year after the composer's death. As Science News explains, the player rolled two dice for each bar of a 16-bar waltz and used the result to pick that bar from a table of 176 numbered measures. Most scholars reject the attribution to Mozart. The game still shows the principle clearly: someone composed the pieces and the rules for joining them, and chance did the joining. The bars were written so that, whatever the dice say, the result follows the harmonic rules of a dance of the period.
Nearly two centuries later, the American composer Terry Riley wrote a piece in which the rules were for people rather than dice. In C, from 1964, is a set of 53 short musical figures. In an essay for the Library of Congress, the composer Robert Carl explains how it works. All the musicians start on the first figure. Each can repeat a figure as many times as they like, but they must move through all 53 in order. A repeated high C, known as the Pulse, keeps everyone together. The piece was first performed in San Francisco in November 1964, by a group that included Steve Reich, Pauline Oliveros and Morton Subotnick.
Carl points out a paradox: "every note and rhythm is fixed. It's the movement between the modules that has such extraordinary flexibility and freedom." The rules are the composition.
Two tape machines drifting apart
Reich took the idea somewhere stranger. For It's Gonna Rain (1965), he recorded a Pentecostal preacher, Brother Walter, in San Francisco's Union Square. According to his record label Nonesuch, he then lined up two Wollensak tape recorders playing the same loop, which gradually fell out of sync. "If you loop it, if you repeat it, that becomes clearer, and the meaning doesn't really disappear, actually it gets intensified," Reich says of the speech.
Nobody plays a note in the piece. In the 1996 talk, Eno described what happens as the two copies of the phrase slip apart: "They start to sound like an echo." And then, "gradually they start to sound like all sorts of things."
Eno said that In C "was not the one which blew my socks off". That credit went to Reich's tape piece. It was, he said, "produced by a very, very simple process", and yet "the results, sonically, are very complex." What struck him most was the proportion between the two: "you are getting a huge amount of material and experience from a very, very simple starting point." He also compared it to something visual: the Reich piece, he said, was "what would be called visually a moire pattern", the figure that appears when two nearly identical grids overlap. That comparison is explored in Moiré patterns: the art of interference.
Loops of different lengths
Eno went on to build his own systems. In the same talk he explained how one of the pieces on Ambient 1: Music for Airports works, and called it "structurally very, very simple". A few sung notes were recorded onto separate tape loops of different lengths. "One of the notes repeats every 23 1/2 seconds," he said; the next about every 25 and seven-eighths, the next about every 29 and fifteen-sixteenths. The cycles, in his word, are "incommensurable": they are "not likely to come back into sync again."
The result is a piece whose basic elements never change, yet which keeps changing. At any moment you hear one particular clustering of notes; later, another. If the numbers are complex enough, Eno said, such pieces "simply don't ever re-configure in the same way again." A related essay, A website that asks nothing of you, looks at what Eno asked of the listeners of that record.
From floppy disks to phones
In the mid-1990s, software made it possible to put the system itself in a listener's hands. Generative Music 1, published in 1996, was a floppy disk of pieces made with SSEYO Koan Pro. In the same notes as the wind chimes, Eno explained why it mattered to him. "Until a hundred years ago, every musical event was unique," he wrote. "Then came the gramophone record, which captured particular performances, and made it possible to hear them identically, over and over again." Generative music, he argued, sat between the two: "Like live music, it is always different. Like recorded music, it is free of time-and-place limitations — you can hear it when and where you want."
Five years later he found a simpler image. "Ordinary music is like engineering, where everything's built according to a plan, and it's the same every time you play it," he told Wired in 2001. "Generative music is more like gardening; you plant a seed, and it grows different every time you plant."
In 2008 Eno and the musician and software designer Peter Chilvers released Bloom for the iPhone and iPod touch. The Guardian described what happened when you used it: touch the screen and notes "tinkle to life alongside splashes of colour like ink drops on blotting paper"; leave it alone and after a few minutes it begins to compose on its own. Its makers' site, GenerativeMusic.com, quotes Eno's own description: "Bloom is an endless music machine, a music box for the 21st Century. You can play it, or you can watch it play itself." That last sentence holds the whole idea of interactive generative music in two choices: take part, or listen.
A browser that makes its own sound
The simplest way for a web page to make a sound is to play a recording. The Web Audio API goes further. It is a set of tools built into browsers for making and shaping sound with code, and on 17 June 2021 the World Wide Web Consortium, which sets standards for the web, announced that it had become an official standard, "focussed on sound creation (rather than merely the playback of recorded audio)".
MDN's guide describes how it works. Sound starts from sources, which can be recordings or can be "computed mathematically", such as an oscillator, which in effect produces a constant tone. Sources are linked through other nodes, which change volume or add effects, and finally to the speakers. Because timing is precise, MDN notes, things like drum machines and sequencers are "well within reach". So is a page that keeps composing for as long as it is open, which is what a generative piece needs: not a file to play back, but rules to run.
Synfield's sound is made this way. It is synthesised in the browser with the Web Audio API, from oscillators, filters and noise generated in code; there are no recordings. Synfield starts silent, and nothing plays until you turn sound on.
Listening in Soundscape and Orbits
Two Synfield worlds lean especially towards the ideas in this essay, and each echoes a different part of its history.
Soundscape is, in the words of its page, "a night pond of sound that lives on its own. Touch it and it changes." The page says it "also draws on generative music, in which rules, processes or interactions produce compositions that change over time", and that is how it works. When you arrive, two plants of sound are already alive. With sound on, the garden keeps going without you: the weather shifts, showers and gusts pass through, and it sows new plants of its own. Its voices belong to four families: chimes; air, a band of noise that narrows towards a whistle; grain, the hiss and drops of rain; and calls, short motifs that others answer.
Nothing in it is a fixed loop. The root of the harmony moves slowly through F, C, G, D, A and E, and each plant takes a degree of a just-intonation scale above it. The rules decide what can sound together; chance, the weather and you decide what sounds when. It is close to what Eno described in 1996: a set of rules, set going, that make the music.
You take part with a few gestures. Moving the pointer, a finger or your hand sends a wind across the water. Holding, with the mouse button, a finger kept still for a moment, or thumb and index brought together, sows a new plant, or takes a nearby one and moves it. Let go and it lives on by itself, growing and, in time, fading. The wheel or the up and down arrows, two fingers spreading or closing, or an open palm and a fist, open the space or gather it. The page's suggestions for listening read almost like instructions for a generative piece: "Watch the pond before making a gesture. Touch the surface once and follow the response. Add a second disturbance before the first has faded. Turn on sound and notice how the atmosphere changes."
Orbits is "planets you launch, singing as they pass." Three planets are already circling when it opens. With sound on, each one gives a note on every lap, as it passes the top of its orbit, and the closer the orbit is to the centre, the higher the note, on a pentatonic scale. Each orbit has its own period, so the notes drift in and out of phase with one another. It is the same principle as Reich's two tape machines slipping apart, or the loops of different lengths on Music for Airports: separate cycles that drift in and out of step. Beneath them runs a continuous low layer. Creating and launching a planet make short sounds of their own, two planets passing close and aligned give a softer note, and a planet that falls into the sun disappears with a low thud.
Moving the pointer, a finger or your hand guides the planets. Holding, in the same three ways, creates a planet and draws its path; letting go launches it, and staying still as you let go gives it a steady orbit. The wheel or the arrows change the speed of time, and so do your hands: an open palm, or two fingers spreading, slows it down; a fist, or two fingers closing, speeds it up.
In the same 1996 talk, Eno asked a question that generative music still raises: "With this generative music that I played you, am I the composer?" In Soundscape and Orbits, the rules were written in advance. What they make depends on time, on chance and on what you add: a plant sown in the dark water, a planet let go. Leave either world open with sound on, and it goes on playing music that nobody wrote note by note.