Classes | UGens > FFT

PV_PhaseShift90 : PV_MagSquared : PV_ChainUGen : WidthFirstUGen : UGen : AbstractFunction : Object

Shift phase by 90 degrees.
Source: FFT.sc

Description

Shift phase of all bins by 90 degrees.

Class Methods

PV_PhaseShift90.new(buffer)

From superclass: PV_MagSquared

Arguments:

buffer

FFT buffer.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

s.boot;

(
{ |out=0, bufnum=0|
    var in, fft, fft2, shifted;
    in = SinOsc.ar(500, 0, 0.1);
    fft = FFT(LocalBuf(2048), in);
    fft2 = FFT(LocalBuf(2048), in);
    shifted = PV_PhaseShift90(fft);
    Out.ar(out, [IFFT(fft2), IFFT(shifted)]);
}.scope
)