melonJS
    Preparing search index...

    Interface NoiseFilter

    Optional band-shaping filter applied to the procedural noise burst produced by noise. Mirrors a subset of the WebAudio BiquadFilterNode configuration so users can sculpt the spectral colour without dropping to a custom WebAudio graph.

    interface NoiseFilter {
        frequency: number;
        Q?: number;
        type: BiquadFilterType;
    }
    Index

    Properties

    Properties

    frequency: number

    Centre / cutoff frequency in Hz.

    Q?: number

    Filter resonance / quality factor. Defaults to the WebAudio default (1).

    type: BiquadFilterType

    Filter shape — "lowpass", "highpass", "bandpass", "lowshelf", "highshelf", "peaking", "notch", or "allpass". See the WebAudio BiquadFilterNode docs.