SuperCollider CLASSES

PV_Add

Complex addition.

Description

Complex addition:

RealA + RealB, ImagA + ImagB

Class Methods

*new (bufferA, bufferB)

From superclass: PV_MagMul

Arguments:

bufferA

FFT buffer A.

bufferB

FFT buffer B.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

s.boot;
b = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav");

(
SynthDef("help-add", { arg out=0, soundBufnum;
    var inA, chainA, inB, chainB, chain ;
    inA = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1);
    inB =  PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum) * 0.5, loop: 1);
    chainA = FFT(LocalBuf(2048), inA);
    chainB = FFT(LocalBuf(2048), inB);
    chain = PV_Add(chainA, chainB);
    Out.ar(out,  0.1 * IFFT(chain).dup);
}).play(s, [\soundBufnum, b.bufnum]);
)

b.free