Added help for Pen and updated some other docs
[supercollider.git] / HelpSource / Classes / PV_MagNoise.schelp
blobe2429432db9f947240d039479d41c23844eba67d
1 class:: PV_MagNoise
2 summary:: Multiply magnitudes by noise.
3 related:: Classes/FFT, Classes/IFFT
4 categories:: UGens>FFT
6 Description::
8 Magnitudes are multiplied with noise.
11 classmethods::
13 method::new
15 argument::buffer
17 FFT buffer.
20 Examples::
22 code::
24 s.boot;
26 b = Buffer.read(s, Help.dir +/+ "sounds/a11wlk01.wav");
29 SynthDef("help-magNoise", { arg out=0;
30         var in, chain;
31         in = SinOsc.ar(SinOsc.kr(SinOsc.kr(0.08, 0, 6, 6.2).squared, 0, 100, 800));
32         chain = FFT(LocalBuf(2048), in);
33         chain = PV_MagNoise(chain);
34         Out.ar(out, 0.1 * IFFT(chain).dup);
35 }).play(s);
39 SynthDef("help-magNoise2", {  arg out=0, soundBufnum=2;
40         var in, chain;
41         in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1);
42         chain = FFT(LocalBuf(2048), in);
43         chain = PV_MagNoise(chain);
44         Out.ar(out, 0.2 * IFFT(chain).dup);
45 }).play(s,[\soundBufnum, b]);
48 b.free;