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

FFTSubbandFlatness : MultiOutUGen : UGen : AbstractFunction : Object
ExtensionExtension

Spectral flatness, divided into subbands

Description

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

The parameter cutfreqs can only be specified on initialisation - they can't be modulated.

Class Methods

FFTSubbandFlatness.kr(chain, cutfreqs)

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.)

Returns:

#[flatness1, flatness2, ... flatnessN+1]

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.numbands

Examples

In this example we take a "flat" sound (white noise) and an "unflat" sound (a sawtooth wave) and mix them together bandwise using [PV_BinWipe]. With the spectrum divided into three bands you should be able to see the results.