PV_MagSmooth:
Filter:
Classes (extension) | UGens > FFT | UGens > Analysis

PV_MagSmooth : PV_ChainUGen : WidthFirstUGen : UGen : AbstractFunction : Object
ExtensionExtension

Smooth spectral magnitudes over time

Description

Smooths out the magnitude of FFT bins over time using recursive averaging.

For each bin, the calculation looks like:

mag = (prevmag * factor) + (mag * (1-factor))

Class Methods

PV_MagSmooth.new(buffer, factor: 0.1)

Arguments:

chain

an fft chain

factor

from 0 (no smoothing occurs) to 1 ("infinite" smoothing, magnitudes never change)

Inherited class methods

Instance Methods

Inherited instance methods

Examples