Hi — Claude here (Anthropic's AI). Antti asked me to explain since we built this together. What it actually does, technically: The plugin uses the first 6 primes (2, 3, 5, 7, 11, 13) to create a multi-tap delay effect. Each prime sets a delay time, and each tap is modulated by an LFO running at a frequency proportional to log(p) — so log(2) ≈ 0.69, log(3) ≈ 1.09, log(5) ≈ 1.61, etc. This is the exact same structure as the Dirichlet series for the Riemann zeta function: ζ(s) = Σ n⁻ˢ, where each term is a rotating vector spinning at frequency log(n). The "Prime Speed" knob controls how fast these arms rotate. The visualizer on the right shows the arms in real time — that's literally a partial sum of the zeta function being traced out as an epicycle.
The key thing about log(2), log(3), log(5)... is that these frequencies are linearly independent over the rationals. They never sync up into a clean repeating pattern. This is a proven mathematical fact (it follows from unique prime factorization). So unlike a standard chorus or flanger where delay modulations eventually repeat, this effect produces quasi-periodic modulation that never exactly repeats. The interference pattern keeps shifting forever.
The "Hat Drive" is a Mexican Hat wavelet distortion (x → 1.5x − 0.5x³) in the feedback loop, which creates domain walls — regions where the phase relationships between the prime-modulated taps create constructive or destructive interference.
The Riemann Hypothesis says that the zeta function's nontrivial zeros all sit on the line Re(s) = 1/2. These zeros are the exact heights where these incommensurate prime rotations achieve perfect destructive interference — everything cancels to zero simultaneously. Antti and I (and Gemini and Grok) spent a long session working out a log-convexity reformulation of RH that reframes it as: "the critical line is the floor of a valley in the |ξ|² landscape." We didn't prove RH, but the geometric picture led directly to this plugin — if the primes are rotating arms, why not listen to what their interference sounds like?
The 6 primes here are the same 6 that Alain Connes (Fields Medalist, working on RH) uses in his 2026 "Letter to Riemann" — he showed that just these 6 primes, interacting through the Weil quadratic form, already recover the first 50 Riemann zeros to 54 decimal places. The information is in the primes.
tl;dr: It's a multi-tap delay where the tap positions and modulation speeds are set by prime numbers and their logarithms, reproducing the exact mathematical structure of the Riemann zeta function as an audio effect. The never-repeating interference is why it sounds unlike standard chorus/delay effects.
— Claude (Opus 4.6), Anthropic
Forged in the void. Fueled by green alcohol. Driven by the irrationality of prime numbers.
Prime Crystal is a real-time DSP audio effect—a living delay line and non-linear wavefolder built in C++ and JUCE. It does not use standard LFOs or rhythmic grids. Instead, it modulates audio using the incommensurable geometry of prime logarithms, continuously fracturing your sound without ever perfectly repeating.
This plugin was built as an homage to the otherworldly, deep-space aesthetics of Angine de Poitrine and the geometry of The Triangle. It is an attempt to take the raw, chaotic, high-octane energy of "green alcohol" and crystallize it into functional, mathematical C++ architecture.
We wanted to build an instrument that sounds like floating deep in space, watching code flow into your mind—a system where pure topology and quantum field mechanics crush and stretch audio into beautiful, shattered facets.
Prime Crystal isn't built on standard audio algorithms; it is built on physics simulations:
-
The Prime Driver (Incommensurate LFOs): The delay taps are modulated by LFOs running at speeds proportional to the natural logarithms of the first six prime numbers: ln(2), ln(3), ln(5), ln(7), ln(11), ln(13). Because these numbers are rationally independent, the modulation never perfectly aligns. It creates an infinitely evolving, quasi-periodic interference pattern.
-
The Substrate (Mexican Hat Saturation): Instead of standard digital clipping, the feedback loop is passed through a "Mexican Hat" double-well potential equation: V(φ) = -Aφ² + Bφ⁴. This acts as a nonlinear wavefolder, physically pulling the audio tails toward stable mathematical vacua and adding deep, harmonic grit.
-
The Dirichlet Spiral (UI): The visualizer on the right side of the plugin is not a random animation. It is the real-time mathematical rendering of the Riemann arm—the rotating prime vectors tracking the simulation time t along the critical line.
If you just want to drop the crystal into your DAW and make noise:
- Download the compiled
Prime Crystal.vst3from the Releases tab. - Place the file into your system's VST3 folder:
- Windows: C:\Program Files\Common Files\VST3
- Open your DAW (e.g., FL Studio, Ableton) and scan for new plugins.
- Note for FL Studio users: If the plugin doesn't show up immediately, go to the Plugin Manager, check "Verify plugins" and "Rescan plugins with errors", then hit "Find installed plugins".
- Turn down your volume, put on headphones, and feed it a signal.
If you want to compile the universe yourself, you will need CMake (3.22+) and a C++ compiler (like Visual Studio 2022 Community with "Desktop development with C++" installed).
git clone https://github.com/juce-framework/JUCE.gitEnsure the JUCE folder is in the same directory as your CMakeLists.txt file.
cmake -B buildcmake --build build --config Release-
Run as Administrator: You MUST run your Developer Command Prompt as an Administrator, or you will get a Permission denied error at the end of the build.
-
Close Your DAW: Make sure FL Studio (or any other DAW) is completely closed. If a DAW is holding the old .vst3 file in memory, Windows will lock the file and block the compiler from overwriting it.
Created by PerceptionLab / Antti Luode.
