HomeArticlesPsychoacoustics

The Shepard Tone: An Endless Staircase Made of Sound

Octave-stacked sine partials under a fixed bell envelope trick the ear into hearing a pitch that climbs forever without ever revealing where it wraps around.

mysimulator teamUpdated June 2026≈ 7 min read▶ Open the simulation

A staircase that never ends

The Shepard tone, devised by Roger Shepard in 1964, is an auditory illusion: a tone that appears to rise (or fall) in pitch forever, the acoustic analogue of Escher's endless staircase or the barber-pole illusion. Play a sequence of these tones each a semitone above the last and, after twelve steps, you are back exactly where you started — yet each individual step still sounds like a genuine rise.

live demo · nine octave-spaced partials swept under a bell envelope● LIVE

Stacking octaves, not a single pitch

A Shepard tone is not one sine wave — it's a stack of sine-wave partials spaced exactly one octave apart (i.e. each frequency is double the one below it), all sharing the same note class (say, every C, at 65 Hz, 131 Hz, 262 Hz, 523 Hz, 1046 Hz…). Each partial is scaled in amplitude by a fixed bell-shaped spectral envelope centred on some fixed mid frequency, so partials near the middle of the audible range are loud and those at the extremes fade toward silence.

for k = 0 .. N-1 partials, note class fixed, octave k:
  freq_k  = f0 * 2^k
  amp_k   = envelope(log2(freq_k))    // fixed raised-cosine bell in log-frequency
  signal += amp_k * sin(2π * freq_k * t)

envelope shape stays FIXED in absolute frequency;
only each partial's freq_k slides continuously upward (or wraps down an octave)

Why the illusion works

As all partials glide upward together, each one is genuinely rising, which the ear tracks locally without difficulty. But the fixed envelope means that as a partial climbs past the loud middle band and starts fading toward inaudibility at the top, a new partial has simultaneously faded in at the bottom of the stack, one octave below where the top partial started. Because both processes are continuous and the envelope shape never changes, the ear has no local cue for the wraparound — there's no moment where you can point and say "that's where it looped." What you perceive is the chroma of the sound (its note class: is it more C-like or C♯-like) climbing steadily, decoupled from its actual pitch height (which octave), because the height cue has been engineered to stay statistically stationary.

Chroma and height: two separate pitch dimensions

The illusion works because pitch perception is not one-dimensional. Roger Shepard's own model, and the psychoacoustic literature since, treats musical pitch as living on a helix: one turn of the helix is an octave, chroma is the angular position around the helix (which note within the octave), and height is how far up the helix's axis you are (which octave). A Shepard tone is constructed so that chroma keeps changing steadily while height is held statistically constant by the fixed envelope — the two dimensions are decoupled, and the ear happily reports the one that's actually moving.

The Shepard-Risset glissando: a continuous version

Jean-Claude Risset extended Shepard's discrete twelve-step tone into a smooth continuous glissando — the same octave-stacked partials sliding upward gradually rather than jumping in semitone steps — which produces an even more seamless, unbroken sense of endless ascent. It's the sound most people actually associate with the "impossible staircase" effect in film and music (Risset himself, and later composers, used it explicitly for tension-building soundtrack effects — a famous example is the ascending brass glissandi during Batman's motorcycle chase sequences).

What it reveals about hearing

The Shepard tone is a controlled demonstration that pitch judgment is relative and context-dependent rather than an absolute readout of frequency, similar in spirit to how brightness and colour perception depend on surrounding context rather than raw luminance alone. It's also a clean auditory parallel to visual illusions built the same way — Escher's Ascending and Descending staircase, and the barber pole's endless-rotation illusion, both exploit a periodic structure with a monotonic local cue and no global reference point, so a closed loop reads as endless motion.

Frequently asked questions

Is a Shepard tone one sound gliding up forever?

No — it is a stack of several sine-wave partials, each exactly one octave apart, all sliding upward together under a fixed bell-shaped loudness envelope. As a partial fades out at the top of the envelope, another has already faded in an octave below, so the ear never gets a cue marking where the cycle repeats.

Why can't listeners hear where the pitch wraps around?

Because the fixed spectral envelope keeps the sound's overall loudness distribution across frequency statistically constant even as every partial moves. The ear tracks the locally rising chroma (note class) easily, but the pitch-height cue that would reveal the octave wraparound has been deliberately engineered to stay stationary.

What's the difference between a Shepard tone and a Shepard-Risset glissando?

A Shepard tone moves in discrete semitone steps (traditionally twelve per octave); the Shepard-Risset glissando, devised by Jean-Claude Risset, uses the same octave-stacked partials but slides them continuously rather than stepping, producing an even smoother, more seamless illusion of endless ascent or descent.

Try it live

Everything above runs in your browser — open Shepard Tone Illusion and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Shepard Tone Illusion simulation

What did you find?

Add reproduction steps (optional)