2 summary:: Pass bins below a threshold.
3 related:: Classes/FFT, Classes/IFFT, Classes/PV_MagAbove, Classes/PV_LocalMax, Classes/PV_MagClip
8 Passes only bins whose magnitude is below a threshold.
32 b = Buffer.alloc(s,2048,1);
33 c = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav");
37 SynthDef("help-magBelow", { arg out=0, bufnum=0;
39 in = SinOsc.ar(SinOsc.kr(SinOsc.kr(0.08, 0, 6, 6.2).squared, 0, 100, 800));
40 chain = FFT(bufnum, in);
41 chain = PV_MagBelow(chain, 10);
42 Out.ar(out, 0.5 * IFFT(chain).dup);
43 }).play(s,[\out, 0, \bufnum, b.bufnum]);
47 SynthDef("help-magBelow2", { arg out=0, bufnum=0;
49 in = WhiteNoise.ar(0.2);
50 chain = FFT(bufnum, in);
51 chain = PV_MagBelow(chain, MouseX.kr(0, 7));
52 Out.ar(out, 0.5 * IFFT(chain).dup);
53 }).play(s,[\out, 0, \bufnum, b.bufnum]);
57 SynthDef("help-magBelow3", { arg out=0, bufnum=0, soundBufnum=2;
59 in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1);
60 chain = FFT(bufnum, in);
61 chain = PV_MagBelow(chain, MouseX.kr(0, 310));
62 Out.ar(out, 0.5 * IFFT(chain).dup);
63 }).play(s,[\out, 0, \bufnum, b.bufnum, \soundBufnum, c.bufnum]);