UnpackFFT:
Filter:
Classes | UGens > FFT | UGens > Demand

UnpackFFT : MultiOutUGen : UGen : AbstractFunction : Object

Unpack an FFT chain into separate demand-rate FFT bin streams

Description

Takes an FFT chain and separates the magnitude and phase data into separate demand-rate streams, for arithmetic manipulation etc.

This is technically a demand-rate UGen. The actual "demand" is usually created by PackFFT later on in the graph, which requests the values in order to re-pack the data. This allows for processing to occur in between.

See also PV_ChainUGen: -pvcollect, PV_ChainUGen: -pvcalc, and PV_ChainUGen: -pvcalc2, which provide convenient ways to process audio in the frequency domain. The help for pvcollect includes notes on efficiency considerations.

Class Methods

UnpackFFT.new(chain, bufsize, frombin: 0, tobin)

Arguments:

chain

FFT chain

bufsize

FFT buffer size

frombin

limiting analysis to the bins of interest

tobin

limiting analysis to the bins of interest

Returns:

A list from DC up to Nyquist of [mag[0], phase[0], mag[1], phase[1], ... mag[nyquist], phase[nyquist]].

Discussion:

Note that you do have to decide your FFT buffer size in advance, since this determines how many values the UGen will output.

Inherited class methods

Instance Methods

Inherited instance methods

Examples