2 summary:: Pass bins above a threshold.
3 related:: Classes/FFT, Classes/IFFT, Classes/PV_LocalMax, Classes/PV_MagBelow, Classes/PV_MagClip
8 Passes only bins whose magnitude is above a threshold.
30 b = Buffer.read(s, Help.dir +/+ "sounds/a11wlk01.wav");
34 SynthDef("help-magAbove", { arg out=0;
36 in = SinOsc.ar(SinOsc.kr(SinOsc.kr(0.08, 0, 6, 6.2).squared, 0, 100, 800));
37 //in = WhiteNoise.ar(0.2);
38 chain = FFT(LocalBuf(2048), in);
39 chain = PV_MagAbove(chain, 310);
40 Out.ar(out, 0.1 * IFFT(chain).dup);
45 SynthDef("help-magAbove2", { arg out=0;
47 in = WhiteNoise.ar(0.2);
48 chain = FFT(LocalBuf(2048), in);
49 chain = PV_MagAbove(chain, MouseX.kr(0, 10));
50 Out.ar(out, 0.1 * IFFT(chain).dup);
55 SynthDef("help-magAbove3", { arg out=0, soundBufnum=2;
57 in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1);
58 chain = FFT(LocalBuf(2048), in);
59 chain = PV_MagAbove(chain, MouseX.kr(0, 310));
60 Out.ar(out, 0.1 * IFFT(chain).dup);
61 }).play(s, [\soundBufnum, b]);