linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / PV_PhaseShift90.schelp
blob27126ccb068dff429b4d48fa0cceeb2e9584edec
1 class:: PV_PhaseShift90
2 summary:: Shift phase by 90 degrees.
3 related:: Classes/FFT, Classes/IFFT, Classes/PV_PhaseShift, Classes/PV_PhaseShift270, Classes/PV_Diffuser
4 categories:: UGens>FFT
6 Description::
8 Shift phase of all bins by 90 degrees.
11 classmethods::
13 method::new
15 argument::buffer
17 FFT buffer.
20 Examples::
22 code::
24 Server.internal.boot;
27 { arg out=0, bufnum=0;
28         var in, fft, fft2, shifted;
29         in = SinOsc.ar(500, 0, 0.1);
30         fft = FFT(LocalBuf(2048), in);
31         fft2 = FFT(LocalBuf(2048), in);
32         shifted = PV_PhaseShift90(fft);
33         Out.ar(0, [IFFT(fft2), IFFT(shifted)]);
34 }.play