Procedural music, explained
How NoiseDisk makes music
Every NoiseDisk track is composed and synthesised the moment you press Generate. There are no recordings, no loops and no AI: just musical rules, a seed and a synthesiser running in your browser. This page walks through what happens between the click and the first note.
- Seed
- Form
- Harmony
- Melody
- Band
- Check
- Patterns
- Synthesis
1. It starts with a seed
A seed is a short code like 21FX-BD7Q. It is the starting value for a pseudo-random number generator: a small
piece of maths that produces a long sequence of numbers which look random but are completely determined by the seed. Feed it the same
seed and you get exactly the same sequence, on any computer, every time.
Every choice the composer makes, from the tempo to the last drum fill, is a roll of these dice. So the seed doesn't store the song; it regenerates it. That is why a NoiseDisk share link is only a few dozen characters long: it holds the seed and your settings, never the audio.
Seeds use 32 characters (digits and letters, without I, L, O and U, which are easy to misread). Eight characters give 328 = 1,099,511,627,776 possible seeds, about 1.1 trillion, for every combination of style and settings.
Same seed, different style
The style is part of the recipe. Here is what the seed 21FX-BD7Q becomes in five of the twelve styles. The title,
Digital Matrix II by Copper Works, comes from the seed alone, but the style changes the tempo, the mode and
everything you hear:
| Style | Tempo | Key | |
|---|---|---|---|
| Classic | 140 BPM | D# harmonic minor | listen ▸ |
| Melodic trance | 140 BPM | D# minor | listen ▸ |
| Funky tracker | 119 BPM | D# Mixolydian | listen ▸ |
| Atmospheric demoscene | 115 BPM | D# Dorian | listen ▸ |
| Upbeat chiptune | 169 BPM | D# major | listen ▸ |
The key, D#, stays the same because it is drawn from the seed before the style is applied; each style then picks a mode it favours (bright major for chiptune, Dorian for atmospheric, and so on).
2. Separate dice for every part
If one sequence of random numbers drove the whole song, changing anything would change everything: a different drum fill would shift every later roll and rewrite the melody too. So NoiseDisk splits the seed into nine independent streams, one per job:
- structure
- harmony
- melody
- bass
- drums
- arpeggio
- instruments
- effects
- variation
The drum part only ever reads from the drums stream, the bass only from the bass stream, and so on. That is what makes remixing possible. In the mixer, the notes button gives one part a fresh stream (a new drum groove, a new bass line) while everything else stays put. Evolve keeps the parts you lock and re-rolls the rest, so you can keep a melody you love and hear it with new drums, new chords or new instruments.
3. Giving the song a shape
Before writing a single note, the composer plans the song's form: the order of its sections and how long each one is. Real music is built from sections that repeat and contrast, and listeners rely on that to follow a song. NoiseDisk builds forms from a small grammar of options:
- Intro: drums alone, a pad, a filtered arpeggio, a groove, a hint of the melody, or straight in.
- Theme A: the main melody, often repeated with variations (A′).
- Theme B: contrasting material, played normally, at half time, stripped back, or driving harder.
- Middle: an optional breakdown (pads only, an arpeggio break or a lead solo) and a build-up (a snare roll, a rising filter or building drums) that raises the tension before the return.
- Reprise: theme A comes back, sometimes in a new key.
- Ending: a fade-out, a stripped-down outro or a hard stop.
Two song-wide traits add character. A personality decides how full the arrangement is (classic, minimal, layered, where parts pile up as the song goes on, or a wall of sound), and an energy curve decides whether intensity rises and falls in an arc, climbs steadily, or stays high. The composer sketches eight candidate forms and keeps the one closest to the length you chose.
DEMO-000 in the Classic style, Ultra Kernel: 72 bars, about 2 minutes 12 seconds at 131 BPM.
Widths are proportional to length in bars.
Two more forms from the same style, to compare:
4. Key, mode and chords
Next comes harmony. The composer picks a key (the home note) and a mode (the set of notes the song uses, which sets its mood): major sounds bright, minor darker, Dorian wistful but hopeful, Mixolydian bluesy and upbeat, harmonic minor dramatic. Each style has favourite modes.
Chord progressions are written in roman numerals, which describe chords by their position in the key rather than by name. In a minor key, i–VI–III–VII is a classic progression of dance and game music; in E minor that is Em–C–G–D, in A minor Am–F–C–G. The composer chooses from progression families that suit the style, or walks from chord to chord with probabilities based on common practice, adding sevenths, suspended chords and passing chords for colour.
Harmony also follows the form: a build-up ends on the dominant chord (V), which pulls strongly back towards home, and the song's last chord resolves to the tonic, the key's home chord. Some songs lift the reprise into a new key for a final burst of energy.
5. Writing the melody
Melodies are built from a motif: a short idea of a few notes that the song repeats and varies, as most memorable tunes do. The composer generates many candidate motifs from rhythm patterns and contour shapes (rising, falling, arching), then scores each one:
- Range: not too narrow to be dull, not too wide to sing.
- Steps and leaps: mostly small steps, with the occasional leap for interest.
- Rhythm: some variety, but still a pattern you can tap along to.
- Repetition: enough to be catchy, not so much that it drones.
The best motif is fitted over the chords: notes that land on strong beats belong to the current chord, so they sound settled, while notes in between can pass through or step around them. Motifs are arranged into phrases with familiar shapes such as A-A-A-C or A-B-A-C, ending in cadences that sound like the end of a sentence. Theme B gets contrasting material, and reprises bring back theme A with variations and ornaments.
6. The rest of the band
Around the melody, each supporting part follows rules from the style:
- Drums: a groove (four-on-the-floor, breakbeat, electro, half-time, shuffle and more) with fills at phrase ends, crashes on new sections and optional swing.
- Bass: patterns that lock to the kick drum and outline the chords, from steady eighth notes to squelchy acid lines.
- Arpeggios: chords played one note at a time at high speed, a signature sound of tracker music, often with a sweeping filter.
- Chords and pads: sustained harmony with smooth voice leading, so each chord moves to the nearest notes of the next.
- Counter-melody and echo: a second line that fills the gaps in the lead, and a delayed copy of the lead for depth.
Parts are kept in their own register: if the arpeggio drifts into the same range as the lead, the composer moves it an octave away so the two don't blur together.
7. The composer checks its own work
Before a song is played, an evaluator scores it: melodic range and leaps, the balance of repetition and variety, whether strong beats agree with the chords, clashes between bass and lead, overlapping registers, how busy each section is, and whether the energy rises and falls. If the score is too low, the song is recomposed from a derived seed, up to three times. This is still deterministic: the same seed always takes the same path, so it always arrives at the same song.
Rules can measure structure, not beauty, so NoiseDisk's rules are also tuned by ear: by people listening to the songs and deciding what works.
8. From notes to a tracker pattern
NoiseDisk writes its songs the way 1990s tracker software did, and you can watch the result scroll past in the pattern view. A tracker is a music program where time runs downwards: each row is a sixteenth note, each column is a channel (one instrument part), and a pattern of 64 rows holds four bars. A song is a list of patterns, and repeated patterns are stored only once.
Here are the first 16 rows (one bar) of theme A from Ultra Kernel, for six of its fourteen channels:
row kick snare hats bass lead arp 00 C-4 01 40 ... .. .. C-4 04 2F E-2 0A 3A E-5 0B 3A E-4 0D 36 01 ... .. .. ... .. .. C-4 04 17 ... .. .. ... .. .. G-4 0D 2C 02 ... .. .. ... .. .. C-4 05 30 G-2 0A 34 === .. .. B-4 0D 2C 03 ... .. .. ... .. .. C-4 04 18 ... .. .. G-5 0B 33 E-4 0D 2C 04 C-4 01 40 C-4 02 40 C-4 04 2F B-2 0A 3A ... .. .. G-4 0D 36 05 ... .. .. ... .. .. C-4 04 18 ... .. .. A-5 0B 33 B-4 0D 2C 06 ... .. .. ... .. .. C-4 05 30 E-3 0A 34 ... .. .. E-4 0D 2C 07 ... .. .. ... .. .. C-4 04 19 ... .. .. === .. .. G-4 0D 2C 08 C-4 01 40 ... .. .. C-4 04 2F B-2 0A 3A E-5 0B 3A B-4 0D 36 09 ... .. .. ... .. .. C-4 04 17 ... .. .. ... .. .. E-4 0D 2C 0A ... .. .. ... .. .. C-4 05 30 G-2 0A 34 F#5 0B 33 G-4 0D 2C 0B ... .. .. ... .. .. C-4 04 17 ... .. .. ... .. .. B-4 0D 2C 0C C-4 01 40 C-4 02 3F C-4 04 31 E-2 0A 3A G-5 0B 3A E-4 0D 36 0D ... .. .. ... .. .. C-4 04 18 ... .. .. ... .. .. G-4 0D 2C 0E ... .. .. ... .. .. C-4 05 30 G-2 0A 34 === .. .. B-4 0D 2C 0F ... .. .. C-4 02 15 C-4 04 17 ... .. .. E-5 0B 33 E-4 0D 2C
How to read it:
- Row numbers are in hexadecimal (00 to 0F here, up to 3F in a full pattern), as trackers always showed them.
- Note (
E-5,F#5): the pitch and octave.===releases the previous note;...means nothing new happens. - Instrument (
0B): which sound plays it, from the song's instrument list. - Volume (
3A): hexadecimal, from 00 (silent) to 40 (full).
You can see the music in the numbers: the kick on every beat (rows 00, 04, 08, 0C), the snare on beats two and four with a ghost note at row 0F, hats on every row with accents, the bass walking E–G–B in E minor, and the arpeggio cycling through the notes of the chord. Trackers also had an effect column with commands for slides, vibrato, fast chord arpeggios and more; NoiseDisk uses those too.
9. Making the sound
NoiseDisk has no sample library. Every instrument is designed for each song from the instruments stream and synthesised in real time:
- Oscillators: the classic waveforms (saw, square and pulse with moving width, triangle, sine), FM for bells and metallic tones, noise for percussion, and wavetables for organs, strings and voice-like pads.
- Shaping: a filter that can sweep and resonate, envelopes for attack and decay, vibrato, detuned unison voices for big leads, drive and bit-crushing.
- Drums: kick, snare, clap, hats, toms and effects are synthesised as short samples at the start of the song, at a lower sample rate and bit depth if you turn up the Retro control, for that crunchy 8-bit sound.
- Mixing: each channel can send to a tempo-synced echo and a reverb, the kick gently ducks the other parts, and a compressor and limiter keep the mix even and free of clipping.
All of this runs in an AudioWorklet, a part of the browser built for real-time audio. When you export a WAV file, the very same engine renders the song offline, so the file sounds exactly like what you heard.
10. Why your song never changes
A seed only reproduces a song if the rules stay the same, yet the composer keeps improving. NoiseDisk handles this the way a library keeps old editions of a book: every share link and favourite records which version of the composer made it. When the rules change, the new version becomes the default for new songs, and earlier versions are kept so that old links still play exactly as they did. Favourites go one step further and store a full copy of the song on your device.
Questions
Is this AI?
No. It is rule-based procedural generation, the same family of techniques games use to build levels and worlds. There is no machine learning, no trained model and no online service.
Are any recordings used?
No. Every sound, drums included, is synthesised in your browser while the song plays.
How many songs are there?
About 1.1 trillion seeds for each combination of style and settings, and the mixer and Evolve can turn any of them into new variations.
Does it work offline?
Yes. After your first visit the app is stored by your browser and works without a connection.
Is anything sent to a server?
No. There are no accounts and no tracking; favourites and settings stay in your browser.