Pink noise generator with customizable frequency distribution. The default config produces a power spectrum roughly following the 1/f pink characteristic.
remarks
Custom frequency/power distributions can be obtained by providing amp and probability tuples for the 5 internal bins used to compute the noise. amp defines per-bin power contributions, the latter bin update probabilities.
Resulting noise values are normalized to given gain, which itself is scale relative to the sum of given amp values.
Pink noise generator with customizable frequency distribution. The default config produces a power spectrum roughly following the
1/f
pink characteristic.Custom frequency/power distributions can be obtained by providing
amp
andprob
ability tuples for the 5 internal bins used to compute the noise.amp
defines per-bin power contributions, the latter bin update probabilities.Resulting noise values are normalized to given
gain
, which itself is scale relative to the sum of givenamp
values.References: