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

FFTSubbandPower : MultiOutUGen : UGen : AbstractFunction : Object
ExtensionExtension

Spectral power, divided into subbands

Description

Calculates the spectral power measure, in the same manner as FFTPower, but divides the spectrum into (adjacent, non-overlapping) subbands, so returns separate power measures for the different subbands.

The parameters cutfreqs, square and scalemode can only be specified on initialisation - they can't be modulated.

Class Methods

FFTSubbandPower.kr(chain, cutfreqs, square: 1, scalemode: 1)

Arguments:

chain
cutfreqs

must be an array of frequencies. For example, to divide a 44100Hz signal into three subbands we might specify [ 5512, 11025 ] as the cutfreqs, giving subbands of 0-5512Hz, 5512-11025Hz, and 11025-22050Hz. (Frequencies above the Nyquist frequency are not included.)

square

performs the same role as in FFTPower.

scalemode

specifies how the band powers are scaled: Mode 1 (default) is to scale the same way as FFTPower does (according to the total number of bins in the FFT). This means that if you add up the power from the various bins, you'll get the same result as if you'd just used FFTPower. This gives the best impression of how the power is "really" distributed among the bands. Mode 2 scales each band separately, by dividing by the number of bins in that band. This should be handy for EQ-meter type applications since the dynamic range of each output should be more similar.

Returns:

#[power1, power2, ... powerN+1]

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.numbands

Examples

In this next example we create a graphic EQ meter. The subband power measurements are written out to a control bus, then on the language side we create a task which polls the values and updates a multi-slider to display the power distribution in the familiar home hi-fi style.