VOL. 01 / SEPTEMBER 2026Open access
EXPERIMENT 001 · COMBINATORICS OF MUSIC

A universe in a single bar.

How many melodies fit into a fixed amount of time? Adjust the model, follow the growth, and listen to one of the possibilities.

THE PARAMETERS

048 PITCHES
p · The size of your pitch alphabet.
064 UNITS
n · Measured in the smallest time unit.
A small rule. A vast universe.

Notes have pitch and duration. Rests have duration. Adjacent rests merge into a single silence.

a₀ = 1 · a₁ = p + 1
aₙ = (p + 2)aₙ₋₁ − aₙ₋₂

Unrestricted positive integer durations. Exact arithmetic, entirely in your browser.

Read the derivation

THE SPACE OF POSSIBILITIES

EXACT COUNT
41,006,928,746,285,492,812,225

24 pitches · 16 time units · no adjacent rests

DURATION 0log₁₀(COUNT) · 22.61 AT n = 16

ONE POSSIBLE MELODY

LISTEN & EXPLORE
C52
Rest3
F♯52
Rest2
F♯43
G♯52
G♯52

Block width is duration. Violet is silence. These are illustrative legal examples, not uniformly sampled melodies.

WHY SILENCE IS DIFFERENT

Two consecutive notes remain distinct events. Consecutive rests are represented by one rest of their combined duration.

NRNallowedR R→Rmerge the silence