audio

@audio/synth-noise2.0.2

Colors of noise

Colors of noise — white, pink (Kellet), brown, blue, violet; seeded, slope-verified

Status
calibrated
Updated
Family
synth, 20 packages under it
Plugin
noise, generator, whole signal, 3 parameters
Category
synthesis
Licence
MIT
Dependencies
none
Downloads
3,350 last month
Tests
94 in audiojs/synth's CI, passed at f613513,

Listen

audio.from(3).noise()

Parameters

  • generator
  • whole signal
color
white, pink, brown, blue, violet
seed
1
1 to 65536
gain
0.8
0 to 1

Colors of noise — white/pink/brown/blue/violet, seeded, slope-verified; (duration, opts) seconds; pinkNoise filter kernel as named export

import noise, { white, pink, brown, blue, violet, pinkNoise } from '@audio/synth-noise'

Seeded, deterministic noise-color generators with defined spectral slopes: white 0 dB/oct, pink -3 (Kellet filter), brown -6 (leaky integration), blue +3 (differentiated pink), violet +6 (differentiated white). Unpitched — (duration, opts) in seconds, the family convention every generator follows.

noise(1, { color: 'pink', seed: 1 })   // → Float32Array
pink(1, { seed: 1 })                    // same, direct
Param Default Applies to
duration 1 all Seconds (positional)
color 'white' noise() only 'white' | 'pink' | 'brown' | 'blue' | 'violet'
seed 1 all PRNG seed
leak 0.999 brown only Integrator leak coefficient
fs 44100 all Sample rate

pinkNoise (from ./pink-noise.js) is the underlying Kellet-filter kernel, exported directly for use outside the color generators.

Use when: dither, masking noise, testing filters/denoisers against known spectral slopes.


Part of @audio/synth — the synth family umbrella.

MIT © audiojs