Dust
SourcesdustLight CPU
Randomly-clocked impulses — density-controlled crackle and grains.
What it does
Randomly-clocked impulse source — crackle, grains, excitation.
Wraps daisysp::Dust. Each sample it draws a random number and, when that number falls under the density threshold, emits it scaled back up to roughly 0..1; every other sample is exactly 0. That makes it a stream of one-sample impulses at random times rather than a continuous noise. Init() takes no sample rate, and there is no amplitude setter, so Amp is applied as a post-multiply.
Parameters
-
Density
densityHow often an impulse fires, as a probability rather than a rate. It is scaled by 0.3 inside DaisySP and tested once per sample, so at 48 kHz a density of 1.0 is around 14,000 impulses a second — a dense hiss, not a texture. Sparse crackle lives below 0.05; above about 0.2 the individual grains stop being separable.
-
Amplitude
amplitudePost-multiply level. Dust has no amplitude setter of its own, so this is a plain multiply on the output — wire an envelope or LFO here to shape bursts.
Random impulses, one sample wide. Density is a probability per sample (scaled by 0.3), not a frequency — keep it low for separable grains. Density / Amp are per-sample (modulatable). Ping a Comb Filter or Filter with it for plucked and struck sounds.
Ports
In
-
Density
density -
Amp
amplitude
Out
-
Audio Out
output
Audio Control
Inputs
- Density
- Probability an impulse fires (0..1, scaled by 0.3 internally).
- Amp
- Post-multiply amplitude — wire an envelope or LFO.
Outputs
- Audio Out
- One-sample impulses, 0..amp. Unipolar — never negative.
Rules and gotchas
- Density is a per-sample probability, not a rate in Hz — 1.0 is a dense hiss, not one impulse per second.
- The output is unipolar (0..amp): it has a DC offset by construction. Filter it, or feed it into a resonator, rather than sending it straight to the outputs.
- Density / Amp are per-sample and fully modulatable; nothing here is baked at build time.