Now I have the full picture — Tailwind v4, React 19, single-file build. I'm building PARTIELS — a real-time spectral processing instrument inspired by Grisey, built around a novel DSP engine I'll call Spectral Sieve Diffusion (SSD): a phase-vocoder core running rank-ordered partial pruning, f₀-anchored spectral warping, rotating harmonic sieves, prime-period pulsar gating, and bounded stochastic drift — all inside an AudioWorklet, all parameter updates live in real time.
Let me start with the foundation: fonts/title, CSS theme, icons package, and one atmospheric artwork for the empty state.
Foundation is set. Now the global stylesheet with the visual language — ink black, bone ivory, ember orange, film grain, refined control styles.
Now the core of the whole piece — the Spectral Sieve Diffusion engine as an AudioWorklet (phase vocoder + five spectralist operators, real-time, all parameter messages smoothed per analysis frame).
Let me refine the worklet — moving per-frame allocations to instance fields (no GC on the audio thread), removing dead code, and fixing frame-alignment bookkeeping.
Worklet done. Now the engine class that manages the AudioContext, loads the worklet via Blob URL, runs the looping source through it, and routes telemetry to the UI.
Small type fix needed in the engine:
Now the demo sound sources — procedurally synthesized homage material, including the low-E trombone whose spectrum Grisey orchestrated in Partiels (1975).
Audio core complete. Now the interface components — first the knob and the "Spectral Lens" XY pad.
Now the centerpiece visual — the spectral loom stage: scrolling waterfall spectrogram + live partial threads driven by worklet telemetry.
Now shared state types, presets, and the side panels + about overlay.
Now the main App — layout composition, state management, file/demo loading, transport, drag & drop, and the control deck.
App composed. Let me build and verify:
Build passes. Now let me fix two functional issues I spotted: the initial preset state doesn't match the displayed active preset, and the worklet's baked-in defaults would diverge from UI state if the user never touches a knob — the engine needs a full param sync on boot. Also adding a visible load-error toast for unsupported browsers/codecs.
Let me polish one detail (removing a decorative glyph from the readout) and rebuild:
The build is clean. The instrument is complete — let me summarize what was created.
PARTIELS — a Spectral Sieve Engine
A browser-based, real-time spectral processing instrument inspired by Gérard Grisey and the spectralist school, built around a novel algorithm I designed specifically for it: Spectral Sieve Diffusion (SSD).
The algorithm (AudioWorklet, 4096-pt phase vocoder, ~43 frames/sec)
Five cooperating operators run on every spectral frame, all live and smoothed per-frame:
- Rank-ordered partial pruning — the spectrum is peak-picked, sorted by amplitude, and only the strongest N partials are resynthesized (Grisey orchestrating a trombone spectrum in Partiels, 1975), with a faint −44 dB residue and de-zipped per-bin gates.
- F₀-anchored spectral warp — a weighted comb tracker finds the fundamental each frame; the entire spectrum compresses toward or expands away from it continuously — Grisey's harmonic compression without formant artifacts.
- Rotating harmonic sieve — a slowly rotating sine field gates partials by harmonic rank, its modulus evolving from 3 to 11 with density, cycling between ordered stasis and flux.
- Pulsar gating — each rank clocks through its own prime-numbered period (Le Noir de l'Étoile), beating out of sync.
- Stochastic diffusion — bounded random walks loosen phase (per bin) and gain (per partial), plus DILATION, a temporal zoom into spectral motion up to ×64, and STASIS, a true spectral freeze.
Pruned spectra are energy-compensated, stereo-decorrelated per bin, soft-limited, and mixed against the dry signal.
Interaction
- Load your own audio file (button or drop anywhere) — never the mic. Three built-in synthesized studies included: Trombone E₂ (after Partiels), Chorale / Fifth, Glass Bell.
- Six macro knobs (PARTIELS, DILATION, WARP, SIEVE, PULSAR, DRIFT), a Spectral Lens XY pad (warp × dilation), MIX and STASIS — everything updates the sound in real time.
- Six presets named after Grisey works (Partiels → Vortex Temporum).
- Live visualization: scrolling ember waterfall spectrogram, the partial "loom" with sieve-state colors, f₀ marker, and level — all fed by worklet telemetry.
- An "About" overlay documents the algorithm, the tradition, and the controls; all audio stays on your machine.
Files built: index.html, src/index.css, src/audio/workletSource.ts, src/audio/engine.ts, src/audio/demos.ts, src/components/Knob.tsx, src/components/LensPad.tsx, src/components/Stage.tsx, src/state.ts, src/components/Panels.tsx, src/App.tsx