2 summary:: Clip bins to a threshold.
3 related:: Classes/FFT, Classes/IFFT, Classes/PV_MagAbove, Classes/PV_LocalMax, Classes/PV_MagBelow
8 Clips bin magnitudes to a maximum threshold.
30 b = Buffer.read(s, Help.dir +/+ "sounds/a11wlk01.wav");
34 in = Mix.arFill(3, { LFSaw.ar(exprand(100, 500), 0, 0.1); });
35 chain = FFT(LocalBuf(2048), in);
36 chain = PV_MagClip(chain, MouseX.kr(0, 15));
37 Out.ar(out, 0.5 * IFFT(chain).dup);
42 SynthDef("help-magClip2", { arg out=0, soundBufnum=2;
44 in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1);
45 chain = FFT(LocalBuf(2048), in);
46 chain = PV_MagClip(chain, MouseX.kr(0, 50));
47 Out.ar(out, 0.5 * IFFT(chain).dup);
48 }).play(s, [\soundBufnum, b]);