2 summary:: Complex addition.
3 related:: Classes/FFT, Classes/IFFT, Classes/PV_CopyPhase, Classes/PV_MagMul, Classes/PV_Max, Classes/PV_Min, Classes/PV_Mul
12 RealA + RealB, ImagA + ImagB
32 b = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav");
35 SynthDef("help-add", { arg out=0, soundBufnum;
36 var inA, chainA, inB, chainB, chain ;
37 inA = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1);
38 inB = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum) * 0.5, loop: 1);
39 chainA = FFT(LocalBuf(2048), inA);
40 chainB = FFT(LocalBuf(2048), inB);
41 chain = PV_Add(chainA, chainB);
42 Out.ar(out, 0.1 * IFFT(chain).dup);
43 }).play(s, [\soundBufnum, b.bufnum]);