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
8 Shift phase of all bins by 90 degrees.
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)]);