The Riemann synth: a supersaw detuned by the zeros.
The Riemann synth is a free online synth whose unison detune is the zeros of the Riemann zeta function. One knob, Height, takes it from a supersaw down to struck metal. Start the voices together and the note stutters back, one hit for each prime and prime power, 2, 3, 4, 5, 7…, faster and faster until it blurs into a held note. Wear headphones: the sides are a second set of zeros.

- Pluginthis synth, free, VST3 and AU for Mac, VST3 for Windows, on 3 December 2026; its code is open too
- Freein your browser, now, on any system
- Different?As a held supersaw, a little. The pulses on the primes only the zeros make: hear them ↑ or pick them out blind ↓
- Open sourceGPL-3.0-or-later, at github.com/Breysel/riemann-synth; the plugin is built with JUCE, under its AGPLv3; the zero tables are numbers, free to take
- Zeros16, 32 or 64 zeros a note, for 8, 4 or 2 notes at once
- Play ittap, keys A to K, or a MIDI keyboard (Chrome, Edge, Firefox); the ⬇ icon saves the last 30 seconds as a WAV; the browser synth runs at 124 BPM
- Byidea and sound: Daniel Breyer, Berlin; code written with Claude; write to him ↓

How it works
What you're hearing
The synth's detune is the heights of Riemann's zeros: a list of numbers, 14.13, 21.02, 25.01 and on, where Riemann's zeta function is zero. The famous Riemann hypothesis is about them, and the primes are hidden in them. Random detune often puts two voices on almost the same pitch; the zeros rarely do. An even spread beats in a repeating pattern; the zeros don't. And the prime numbers come along. Six short chapters show how: five pictures drawn live from the same numbers, and a blind test for your ears.
What is a zero?
Every voice is a zero
1Riemann's zeros
A note is a stack of voices, one for each zero in a window on the line. Height moves the window. The farther a zero sits from Height, the more its voice is detuned, as a share of Height: low down that is a lot, so the voices spread wide; higher up it is less, and they close in. Turn the knob or drag the line.
Drawing from the zeros…
Low Height rings like struck metal, around 1,000 it is a supersaw, high up the voices close in towards one note.
Hear it plays Primes as an echo on the synth and keeps going: turn the knob, drag the line or tap a zone, and the synth's Height follows. Around 1,000, sixteen zeros span 32 cents (a cent is a hundredth of a semitone): a supersaw's detune. At 3,000 they span about 8 and close in towards one note. At the very bottom they span more than two octaves, but the synth fades the far voices (its own rule, not the zeros') and the note rings with a few partials: struck metal, somewhere between a gong and a detuned church bell.
Why?
The primes are hiding in the zeros
2The primes, from the zeros
Make every voice a sine (Shape all the way down; saws do it too, busier), start them all at the same instant (Phase all the way up), and the note does something no envelope asked for. It plucks, falls almost silent, then comes back in pulses, one for each prime and prime power (a prime times itself: 4 = 2 × 2, 8, 9 = 3 × 3…): 2, 3, 4, 5, 7, 8, 9… (clearest with Zeros at 64). Each arrives at a time proportional to its logarithm: bigger numbers come later, closer together, a stutter that speeds up and blurs into the held note.
Drawing from the zeros…
Start the voices together and the primes come back as pulses.
Why the primes? Evenly spaced pitches started together click once a cycle: that is a pulse wave. The zeros are not evenly spaced; started together, they click at the logarithm of every prime and prime power. It is a theorem, the explicit formula, for all the zeros; a note's few dozen blur it. Height and the note set the clock, not your tempo: the 2 comes 0.11 × Height ÷ the note in Hz seconds after it (Height 965 on the A at 440 Hz: an eighth at 124). On the synth this is Phase: up, every voice restarts in phase on each note; down, random phases keep the zeros' spacing without the pulses, for held pads.
Why?
Why 5 comes from the left
3Riemann's zeros
On headphones, with the voices started together as in the Primes presets, 5, 9 and 13 come from the left, 3, 7 and 11 from the right. The middle plays zeta's zeros; the sides play the zeros of a sister function, from the same stretch of the line. Other zeros, the same primes: the sister answers each prime power with a plus, a minus or nothing, and that sends it left, right or to both.
Drawing from the zeros…
The rule: one above a multiple of four goes left, three above goes right, even goes to both.
It is mid/side: left is middle plus sides, right is middle minus sides, and Width sets how loud the sides are (at 0, mono, you hear the middle alone). In mono every pulse stays, just not placed, and on notes below 160 Hz the sides fade. The Hear it button plays the preset Prime chime, an A two octaves above the 440 one: 3, 7 and 11 answer right, 5, 9 and 13 left.
Why?
Why zeros, not random
4Riemann's zeros
Random detune keeps putting two voices almost on top of each other. Such a pair beats so slowly that during one note luck decides how the two add up, from twice as loud to cancelled; with saws their overtones drift faster, so the pair colours the sound. A small thing among sixteen voices, and the zeros avoid it: they repel each other, so it happens rarely.
Drawing from the zeros…
No clumps and no clock, like a hand-tuned supersaw; only the zeros make the pulses.
As a held supersaw the difference is small. Daniel Breyer, who made the synth, heard the zeros against random detune blind, once, and picked the zeros: not huge, but it sounds more interesting.
Luck does that one time in three. Many synths spread their unison evenly instead. That never clumps either, but its beating runs on a clock: on an A at 440, sixteen voices spread evenly in hertz over these 32 cents repeat their beating exactly every 1.8 seconds. A hand-made spread, like the original JP-8000 supersaw's, avoids both too; the zeros are one more such spread, found rather than chosen, and it changes as Height moves. What only they do is the pulses, with Phase up.
Why?
5A blind test
Your turn: which pad is the zeros?
Each pad plays one A, its voices started together: one pad tuned to the zeros, two at random. Only the zeros come back on the primes: after the first hit come 2, 3, 4, 5, 7, faster and faster, until they blur. Random voices blur at once. Laptop speakers will do.
The zeros are
One A at 440 for five seconds, 101 sine voices with the same loudness each, started in step: tuned to the zeros around height 1,999, as the synth's Listen to the primes plays them, or at random over the same span, drawn twice. The first hit, the same in all three, is turned down so you can hear what follows. Every round shuffles the letters and draws the random pads again. Evenly spaced voices would go quiet for four seconds and meet once: chapter 4 has them. This page plays them with plain oscillators, in mono, not the synth.
The primes as a rhythm
6The primes, by hand
The echo is built by hand, not by the zeros: it repeats a note once at the logarithm of every prime power. Set the repeat of 2 to an eighth, and 4, 8 and 16 land on the grid, quieter, while 3, 5, 7 and 9 land off it, in between.
Drawing from the zeros…
The echo puts the primes on your grid by hand: 2, 4, 8 and 16 on it, the odd ones between.
Echo Time sets where the repeat of 2 lands, in sixteenths at 124 BPM, the browser synth's fixed tempo; Echo Amount how loud the repeats are. Overall they fade, as 1/n, though a prime's repeat can be louder than the one just before it; Echo Time stretches them all, keeping their ratios. Prime powers one above a multiple of four answer left, three above right, the powers of two from both, at half level in each. It thickens into a tail by itself.
A rhythm on the primes
The arp's Rhythm Primes plays steps 2, 3, 5, 7, 11 and 13 of sixteen: a pattern named after the primes, with no zeros in it.
Nine presets made of primes
They open the synth's list. Tap one and it plays on the synth above. Grouped by where their primes come from:
From the zeros (the prime echo off, or a faint 7%; no prime rhythm)
By hand
Both
The mathematics behind it
The maths, in symbolsFor mathematicians: the explicit formula, the gap, the small print.
The rule
Zeta is ζ(s) = 1 + 1/2s + 1/3s + … = Πp 1 / (1 − p−s) for Re s > 1, continued to the whole plane except a pole at s = 1; a zero ½ + iγ sits at height γ (the imaginary part), sideways ½ (the real part). Play a note of frequency f at height T. The voice of a zero ½ + iγ sounds at f · γ / T, weighted by a cosine window: a note of 16 zeros is a window about 25 zeros wide, its loudness spread as wide (RMS) as 16 equal voices. The window counts zeros by their place in the row; in the formula, w(γ − T) stands for it. Start all voices in step and, after a time t, their sum is a window-weighted sum of waves cos(γu) with u = 2πft / T. That is one side of the explicit formula, in the form Guinand and Weil gave it. Its other side has a smooth term, which is the pluck at u = 0, and a term −log p / √n at the logarithm of every prime power n = pk, blurred by the window's Fourier transform. With the window w and ŵ(y) = ∫ w(s) e−isy ds:
Σγ w(γ − T) eiγu ≈ (1/2π) ∫ w(r − T) eiru log(r/2π) dr − (1/2π) Σn Λ(n) n−½ eiT(u − ln n) ŵ(ln n − u)
The first term is the pluck, the second the pulses. (The Riemann hypothesis, played plays an older form of the same formula, von Mangoldt's.) So the pulse of n arrives at
For the A at 440 and height 1,999 that is 0.723 seconds times ln n: the 2 after 0.501 seconds, the 3 after 0.794, the 4 after 1.002, the 5 after 1.164, the 7 after 1.407. With Height fixed, the octave above brings the primes twice as fast; where Height follows the note (Prime cascade, Prime pad), every key's primes come at the same moments.
1 · Height
Sixteen zeros in a row span 32.1 cents around height 1,009 and 8.4 at 3,000. The zeros near T are on average 2π / ln(T / 2π) apart, and a voice is detuned by (γ − T) / T, so the spread of a stretch shrinks like 1 / (T ln(T / 2π)): from 1,000 to 3,000 the zeros get only 22% denser, but the detune narrows about 3.7 times (3 × 1.22). At the very bottom, sixteen span 2,696 cents. Below height 1,000 a voice further from the note than the window reaches at 1,000 fades steeply and turns to a sine, a zero with no close neighbour keeps a quiet partial, and the zero nearest the note always sounds in full. At height 14.13 that leaves the note, partials at 1.49 and 1.77 times it about 10 dB down, and a quieter group at 2.15, 2.33 and 2.66, 23 to 25 dB down.
2 · The gap and the ramp
Between the pluck at u = 0 and the 2 at u = ln 2 there is no prime power, so nothing comes back: rendered, the A sits 27 dB under its settled level between 0.25 and 0.35 seconds, while the same voices with their pitches drawn at random over the same span sit at their settled level there (computed for 400 draws). After the 2 the prime powers crowd closer on the logarithmic scale; the note's power, averaged over a stretch of time, ramps up linearly until u = ln(T / 2π), about ln 318, which is 4.17 seconds here, and then, as the rendered note shows, holds. That ramp is the zeros' repulsion seen in time, and it is made of the primes too: their pulses, averaged. Assuming the hypothesis, Hugh Montgomery proved in 1973, using the primes, that the Fourier transform of the zeros' pair correlation, F(α) with each zero's pairing with itself included, is |α| plus a spike at 0 for |α| < 1; with the local scale α = u / ln(T / 2π) that is this ramp. He conjectured the plateau beyond; Freeman Dyson recognised the shape as that of random Hermitian matrices (GUE), and Andrew Odlyzko's computations (1987) matched it. Both are statements about zeros far up the line; at height 2,000 they are a guide, and the rendered note is the check. Physicists know the same shape, dip, ramp, plateau, from chaotic quantum systems. But repulsion alone does not make the silence: random-matrix levels would ramp the same way on average and sit about 11 dB under the settled level at 0.3 seconds. The silence, and the pulses, are the primes.
3 · The sides
The sister is L(s, χ₄), the Dirichlet L-function of the non-trivial character mod 4, and the sides play its zeros between the same two heights as the middle's. Summed over the zeros below a height T, Σ cos(γ ln n) has a dip of about (T / 2π) log p / √n at every prime power, by Landau's formula of 1912; its analogue for L(s, χ₄) gives the same times χ₄(n) (the sister's zeros sit closer together, 7,052 against 5,708 below 6,100, but a dip depends only on the height reached; the extra zeros feed only the smooth term, log(4r/2π) instead of log(r/2π)): +1 for n one above a multiple of four, −1 three above, 0 for the even ones. The sides lose their bottom below 160 Hz. In seven of the nine Primes presets (not Primes as an echo or Prime arp) they start in step with the middle but fade in just after the pluck, which would otherwise come out of the left speaker only; in Listen to the primes they play at 151%, so the left keeps a softer trace of 3, 7 and 11, about 16 dB down, and the right of 5, 9 and 13. A sine voice gives clean pulses; a saw adds a pulse train for each harmonic, at tn / m, which lands some of them in the gap.
4 · The echo
One repeat at τ ln n for every prime power n = pk, as loud as log p / n (a choice: the zeros' own pulses go as log p / √n, and 1 / n lets the tail fade), with τ = Echo Time / ln 2, so the repeat of 2 lands on Echo Time and the repeat of n at log n / log 2 times it. χ₄(n) sends it left, right or to both sides.
5 · Why zeros
Over all 5,693 stretches of sixteen consecutive zeros below height 6,100 (overlapping: about 356 are disjoint), the closest pair sits a median 0.397 of the stretch's average gap apart; for sixteen uniform random points, 0.048 (exactly 1 − 2−1/14: their fifteen gaps, as shares of the span, are uniform on a simplex). Far up the line the gaps are conjectured, and computed, to follow random matrices (GUE), whose gaps, in units of the mean gap, have a variance of 0.18; these zeros' gaps have a variance of 0.15. Zeros this low are stiffer than that limit, a known effect (Bogomolny, Bohigas, Leboeuf and Monastra, 2006). The tightest neighbours in the table, at 5,229.199 and 5,229.242, sit 0.046 of the local mean gap apart.
Nothing on this page depends on the Riemann hypothesis except Montgomery's theorem above, which assumes it. That the zeros the synth plays lie on the line is known well past 6,100 (for zeta past 3 · 10¹², Platt and Trudgian, 2021; for the L-function mod 4, Rumely, 1993, and Platt, 2016), and the explicit formula holds unconditionally. Strictly, Weil's form wants a weight analytic in |Im γ| ≤ ½, such as a Gaussian, for which the exact formula holds; the version above drops terms that are negligible at these heights (the pole terms, the Gamma factor's correction to the log, the mirror terms at −ln n). For the synth's cosine window the prime sum must be cut to the prime powers near eu; it is then an approximation, and the rendered note bears it out: the pulses arrive where it puts them.
Where the numbers come fromThe zero tables, the checks, the source code and the papers.
The zeros were computed for brumm.club: zeta's with Arb, which isolates each zero rigorously and counts them all up to the top height; the sister's with our own double-precision code (sign changes of its Hardy Z function on a fine grid, each zero refined, spot-checked against Arb, the count checked against the zero-counting formula; not interval arithmetic). The synth carries the first 5,708 of zeta's and 7,052 of the sister's, up to a height of 6,100. Every number about the synth on this page was computed from those tables or measured on the rendered sound, and a check run before every change goes live tests the pictures and the words against them. Other people have turned the zeros into sound, usually by putting the first zero on a note and the rest above it; that is close to this synth with Height at the bottom. The synth is free software (GPL-3.0-or-later); its source, the zero tables and the plugin's code are at github.com/Breysel/riemann-synth.
Sources: B. Riemann, Ueber die Anzahl der Primzahlen unter einer gegebenen Grösse (Monatsber. Königl. Preuss. Akad. Wiss. Berlin, 1859) · H. von Mangoldt, Zu Riemanns Abhandlung „Ueber die Anzahl der Primzahlen unter einer gegebenen Grösse" (J. reine angew. Math. 114, 1895) · E. Landau, Über die Nullstellen der Zetafunktion (Math. Ann. 71, 1912) · A. P. Guinand, A summation formula in the theory of prime numbers (Proc. London Math. Soc. 50, 1948) · A. Weil, Sur les « formules explicites » de la théorie des nombres premiers (Comm. Sém. Math. Univ. Lund, 1952) · H. L. Montgomery, The pair correlation of zeros of the zeta function (Proc. Sympos. Pure Math. 24, 1973) · A. M. Odlyzko, On the distribution of spacings between zeros of the zeta function (Math. Comp. 48, 1987) · M. V. Berry and J. P. Keating, The Riemann zeros and eigenvalue asymptotics (SIAM Review 41, 1999) · M. V. Berry, Hearing the music of the primes: auditory complementarity and the siren song of zeta (J. Phys. A 45, 2012) · R. Rumely, Numerical computations concerning the ERH (Math. Comp. 61, 1993) · D. Platt, Numerical computations concerning the GRH (Math. Comp. 85, 2016) · D. Platt and T. Trudgian, The Riemann hypothesis is true up to 3·10¹² (Bull. LMS 53, 2021) · E. Bogomolny, O. Bohigas, P. Leboeuf and A. G. Monastra, On the spacing distribution of the Riemann zeros: corrections to the asymptotic result (J. Phys. A 39, 2006) · F. Johansson, Arb: efficient arbitrary-precision midpoint-radius interval arithmetic (IEEE Trans. Computers 66, 2017).

