Synths node
Granular
A real-time granular synthesizer that shreds a loaded or recorded sample into micro-grains and re-stitches them, with grain length, density, scan speed/position (with freeze), and stochastic randomization on position, length, pitch, and pan.

What it does
Granular is a synth: it turns notes into sound. It takes audio in and gives audio out.
Try it
Load a field recording, freeze the scan, and crank the position/pitch randomization for a shimmering granular cloud from a single still moment.
Recorded SampleGranularAudio Out
Inputs and outputs
Inputs
- audio record in
Outputs
- audio out
Controls
Every control with a range can be driven by a modulator, a note, an audio level or a sketch.
| Control | Range or options | Default |
|---|---|---|
| pos | 0 to 1 | 0 |
| scan | -4 to 4 | 0 |
| size | 5 to 1000 | 80 |
| density | 1 to 100 | 25 |
| spray | 0 to 1 | 0.0500000007 |
| rnd size | 0 to 1 | 0.100000001 |
| rnd pitch | 0 to 24 | 0 |
| pan spread | 0 to 1 | 0.5 |
| reverse | 0 to 1 | 0 |
| pitch | -24 to 24 | 0 |
| finetune | -100 to 100 | 0 |
| granShape | Hann, Gaussian, Triangle, Exp Decay, Trapezoid | 0 |
| pan | -1 to 1 | 0 |
| width | 0 to 2 | 1 |
| mix | 0 to 1 | 1 |
| volume | 0 to 2 | 0.800000012 |
| start | 0 to 1 | 0 |
| end | 0 to 1 | 1 |
Example patch
This patch wires Granular to what it needs and shows the result. Download it, then use File, Open in Infinite, or read it here: it is plain text.
infinite-patch 1
rev 2
# Granular: a starting patch for the Granular node
node 1 Synths Granular
id node
pos 520 300
end
node 2 Synths Oscillator
id in0
pos 0 300
end
node 3 Utility Audio Out
id speakers
pos 1080 300
end
aud node 0 in0
aud speakers 0 node