@thi.ng/dsp
Version:
Composable signal generators, oscillators, filters, FFT, spectrum, windowing & related DSP utils
20 lines • 642 B
TypeScript
import type { IReset } from "@thi.ng/api";
import type { IRandom } from "@thi.ng/random";
import { AGen } from "./agen.js";
/**
* White noise gen with customizable gain and
* [`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
* source.
*
* @param gain -
* @param rnd -
*/
export declare const whiteNoise: (gain?: number, rnd?: IRandom) => WhiteNoise;
export declare class WhiteNoise extends AGen<number> implements IReset {
protected _gain: number;
protected _rnd: IRandom;
constructor(_gain?: number, _rnd?: IRandom);
reset(): this;
next(): number;
}
//# sourceMappingURL=white-noise.d.ts.map