sclang: ServerShmInterface - try to avoid multiple destructor calls
[supercollider.git] / HelpSource / Classes / PV_BrickWall.schelp
blobd1be270dcdd14d61631aa6e94800e4a5cda7f9cd
1 class:: PV_BrickWall
2 summary:: Zero bins.
3 related:: Classes/FFT, Classes/IFFT
4 categories:: UGens>FFT
6 Description::
8 Clears bins above or below a cutoff point.
11 classmethods::
13 method::new
15 argument::buffer
17 FFT buffer.
20 argument::wipe
22 Can range between -1 and +1.
26 code::wipe::  == 0 then there is no effect.
30 code::wipe::  > 0 then it acts like a high
31 pass filter, clearing bins from the bottom up.
35 code::wipe::  < 0 then it acts like a low
36 pass filter, clearing bins from the top down.
39 Examples::
41 code::
43 s.boot;
45 b = Buffer.alloc(s,2048,1);
48 SynthDef("help-brick", { arg out=0, bufnum=0;
49         var in, chain;
50         in = {WhiteNoise.ar(0.2)}.dup;
51         chain = FFT(bufnum, in);
52         chain = PV_BrickWall(chain, SinOsc.kr(0.1));
53         Out.ar(out, IFFT(chain).dup);
54 }).play(s,[\out, 0, \bufnum, b.bufnum]);