Engine
How a recording becomes grains, and how they fall.
Signal path
Both jacks are summed to mono, −3 dB each. The ring takes the input all the time. P10 copies from it into the buffer not playing, and the grains read the buffer playing.
Recording
- TapUnder 0.3 s: the 8 s before it.
- HoldFrom 50 ms before the touch to the release, up to 30 s.
- TrimSilence under −60 dBFS cut from both ends.
- LandCopied at 8×. Over 2 s new grains read it with rising odds.
- SlicesThe loop's start and its 6 strongest attacks, in 5 ms frames. Too few: even parts.
A grain
- PositionThe playhead. With Spray, evenly round it, up to the loop.
- StartUp to 5.3 ms or ¼ its length, in phase with the grain before (WSOLA). Off with Spray.
- ReadFour-point Hermite, as Beads. Rate 2^(n/12), ±24 semitones.
- ShimmerUp: free, to ±12 semitones. Down: octaves, up to 2 grains in 3.
- Size5 ms to 2 s, 100 ms at the centre. Grit: part way to any.
- WindowBeads' envelope along Shape. Flux: part way to any. At least 0.5 ms up, 10 ms down.
- PanSpread places each grain, from the centre to anywhere across. Equal power.
- DirectionThe playhead's.
Starts
Density is grains a second, 0.25 to 320, none at the bottom, whatever their size: grains sounding at once are Density × Size. Jitter takes the starts from a regular pulse to nearly Poisson, the same mean. 32 voices: when all sound, a new grain is dropped.
Level
Grains in phase add in amplitude, scattered ones in power. A normaliser measures both every block, 5 ms smoothed, and brings the sum to the input's level with 0.9 headroom, never boosting grains that cancel. Aligned starts keep slowed grains in phase: at ½× a sawtooth's harmonics vary 0.27 dB from one 20 ms frame to the next, as at 1×. Without, 1.0 dB, and 5.4 dB in a dense random cloud.
Transport
- Speed0 to 4×, the pitch kept. Frozen, a full stroke scrubs the loop.
- EndS07 at the loop's end: stop, turn back, or round again.
- StopP00 held: a tape stop over 0.6 s. Released: back to speed.
- TriggerP02: from the loop's start (end in reverse), a grain at once.
- SlicesP03–P09 held: each slice its own playhead, the loop waiting.
Effects
- FilterSVF: low-pass to 200 Hz, off at the centre, high-pass to 2 kHz.
- ReverbReverbSc on the grains. Decay 0.5 to 16 s, up to half wet.
- MixP11 + S36: the input against the grains, equal power. Grains alone at the top.
- ListenP11 + P10: the input alone, 1 s to dry, 0.5 s back. P11 let go: recording, still dry.
- LimiterLook-ahead 5 ms, −0.5 dBFS, after the mix.
Runtime
- Audio48 kHz, 48-sample blocks: 1 ms. Recordings in SDRAM, mono.
- CPU15 % with no grains. 83 % at most: 32 voices, Pitch +24.
- BrowserThe same C++ core in WebAssembly, in an AudioWorklet.