2 summary:: Square magnitudes.
3 related:: Classes/FFT, Classes/IFFT
8 Squares the magnitudes and renormalizes to previous peak. This makes weak
28 b = Buffer.alloc(s,2048,1);
29 c = Buffer.read(s, Help.dir +/+ "sounds/a11wlk01.wav");
33 SynthDef("help-magSquared", { arg out=0, bufnum=0, soundBufnum=2;
35 in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1);
36 chain = FFT(bufnum, in);
37 chain = PV_MagSquared(chain);
38 Out.ar(out, 0.003 * IFFT(chain).dup);
39 }).play(s,[\out, 0, \bufnum, b.bufnum, \soundBufnum, c.bufnum]);