SuperCollider CLASSES (extension)

PV_Invert
ExtensionExtension

Invert FFT frames

Description

Class Methods

*new (buffer)

Arguments:

buffer

An FFT buffer.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

SynthDef(\invert, {arg buffer;
    var in, chain;
    // a sample signal (strong sin tone, little PinkNoise)
    in = SinOsc.ar(440, 0, 0.4) + PinkNoise.ar(0.1);
    chain = FFT(buffer, in);
    chain = PV_Invert(chain);
    Out.ar(0, [in, IFFT(chain) * 0.5]);
 }).add;

s.boot;

s.sendMsg(\b_alloc, 0, 2048)

s.sendMsg(\s_new, \invert, 1000, 0, 1, \buffer, 0);