UNPKG

@thi.ng/colored-noise

Version:

Customizable O(1) ES6 generators for colored noise

26 lines 676 B
import type { INorm } from "@thi.ng/random"; export interface ColoredNoiseOpts { /** * Number of spectral accumulation bins. * * @remarks * This option will be ignored by the {@link white} noise generator. * * Default value for {@link pink} noise is 8, for others 2. */ bins: number; /** * Amplitude scale factor. * * @defaultValue 1 */ scale: number; /** * PRNG implementation (see thi.ng/random for further details & implementations) * * @default SYSTEM (aka Math.random) */ rnd: INorm; } export declare const DEFAULT_OPTS: ColoredNoiseOpts; //# sourceMappingURL=api.d.ts.map