Endless Staircase

Shepard Tones & the Endless Staircase

An auditory illusion that creates the perception of a tone that continually ascends or descends in pitch, yet never actually gets higher or lower.

Builds on Chapter 1 · Communication, Frequency & Pitch — octaves and the log-frequency axis.

What Are Shepard Tones?

Named after cognitive scientist Roger Shepard, a Shepard tone is an auditory illusion analogous to the visual Penrose staircase — an impossible structure that appears to ascend (or descend) forever. The effect is created by superimposing multiple sine waves spaced at octave intervals, with their amplitudes shaped by a Gaussian (bell curve) envelope. As each component tone glides upward, it fades out at the top of the audible range while a new tone fades in at the bottom, creating the perception of endlessly rising pitch.

The illusion exploits the circular nature of pitch class — the fact that notes separated by octaves share a perceptual similarity. By smoothly cycling through pitch classes with carefully controlled amplitudes, the brain is tricked into hearing a single tone that never stops climbing.

The Penrose Staircase

The visual analog of the Shepard tone is the Penrose staircase, an impossible figure devised by Lionel Penrose and Roger Penrose in 1958. Just as the staircase appears to ascend continuously yet returns to its starting point, the Shepard tone appears to rise in pitch forever without actually getting higher.

Click or tap on each note name to hear individual Shepard scale tones, or listen to the continuous glide below.

Figure ∞.1: Shepard Scale Walker

A 12-step Escherian staircase — the Penrose staircase, one step per chromatic note — visualizes the Shepard tone as a cyclic monotone: a scale that rises by a semitone at every step yet, after twelve, arrives back where it began. The ball jumps from step to step on clicking, tapping, or typing any note input below (linear keyboard, radial keyboard, or a staircase step itself); after step 12 it loops back to step 1, the visual analog of the endlessly ascending illusion. With a keyboard, press c while the staircase is focused to render it chromastereoptically — each tread tinted by its depth so the impossible figure floats into stereo relief. The chromastereoptic toggle needs a physical key, so it is unavailable on touch-only devices.

Note input — click, tap, or type any note on the staircase, the linear keyboard, or the radial keyboard. Both keyboards support multitouch: on a tablet or touchscreen, press several keys or wedges with different fingers to hold chords. Computer-keyboard shortcuts: ASDFGHJKL;:] play C through upper G (with K closing the octave at C, then L;:] continuing D E F G); WETYU play the sharps. Whichever input is used, the same note model drives all three displays. (;:] assume US/UK QWERTY; other layouts may map those positions to different characters.)

Auto-walker transport — the Play button (or Space) starts a continuous walk through the scale at the chosen tempo; tap again to Pause. and step the ball one note down or up, pausing the walker if it was running.

Walker:

Linear keyboard — piano layout. Dimmed keys are the ones the auto-walker will skip in the current mode; click, tap, or type still plays them.

C D E F G A B C♯ D♯ F♯ G♯ A♯

Radial keyboard — the 12 pitch classes laid out around a compass. Hover the style buttons for what each layout emphasizes.

Layout:
⇧0
0
1 · 7
2
3
4 · 1+2
5
Triangle morph 12 Simple Piano + Subtle · + Chromatic 5 Major Pent + Yo · + Black 7 Pure Diatonic

Simple Piano: 7 whites at piano 360°/7 spacing, 5 blacks centered at midpoints with symmetric notches. Clean and finger-friendly — the layout on virtual / MIDI / GM-style keyboards.

C D E F G A B C♯ D♯ F♯ G♯ A♯

Interactive Risset Glissando

The discrete twelve-step Shepard staircase above advances one chromatic step at a time; its continuous-glide cousin is the Risset glissando (Jean-Claude Risset, 1969), where the spectral envelope drifts smoothly rather than jumping. Generated in real time by the site’s audio engine. The circular visualization shows each component tone’s position in the octave cycle — brighter dots indicate louder components (those near the center of the Gaussian envelope). Try switching between ascending and descending to experience the illusion in both directions.

Figure ∞.2: Risset Glissando

Glide rate +0.7×
Spectral spread 0.12
Stacked octaves 8
Space Play/Pause Presets:

Tip: the glide speed controls how fast the phase cycles. Spectral spread is the width of the bell-curve envelope — narrower spread emphasizes the middle octaves and makes the illusion crisper; wider spread blurs the trick. Stacked octaves sets how many simultaneous sine components participate.

How It Works

The Shepard tone works by exploiting two features of pitch perception:

  • Octave equivalence: Notes an octave apart share the same pitch class (both are heard as “the same note, just higher or lower”)
  • Spectral weighting: The bell-curve amplitude envelope ensures that no single component dominates, preventing the listener from tracking any individual tone

The result is that pitch class (which note: C, D, E...) slides monotonically — ascending or descending depending on transport direction — but pitch height (the absolute register) remains ambiguous. The brain resolves this ambiguity by choosing to hear continuous upward (or downward) motion — even though the overall spectral center of gravity stays constant.

Shepard tones appear frequently in film and game sound design to create tension, unease, or the sense of accelerating motion. Christopher Nolan’s Dunkirk (2017) famously used Shepard tones throughout its score, composed by Hans Zimmer, to create a relentless sense of escalating urgency.

💡

Try this: Play the ascending Shepard tone for about 30 seconds, then switch to descending. Many listeners report a jarring perceptual “snap” as the brain recalibrates — even though the underlying pitch components haven’t actually changed position.

Sources & Inspiration

  • The Shepard tone. Roger N. Shepard, “Circularity in Judgments of Relative Pitch,” J. Acoust. Soc. Am. (1964).
  • The continuous glissando. Jean-Claude Risset’s endlessly-rising variant — the Shepard–Risset glissando (late 1960s).
  • The impossible staircase. L. S. Penrose & Roger Penrose, “Impossible Objects: A Special Type of Visual Illusion,” Br. J. Psychol. (1958); popularized by M. C. Escher’s Ascending and Descending.