PV_PhaseShift270 shift phase by 270 degrees

PV_PhaseShift270(buffer)


Shift phase of all bins by 270 degrees.

buffer - fft buffer


See also FFT Overview.


Server.internal.boot;


b = Buffer.alloc(Server.internal,2048,1);

c = Buffer.alloc(Server.internal,2048,1);


(

{  arg out=0, bufnum=0;

var in, fft, fft2, shifted;

in = SinOsc.ar(500, 0, 0.4);

fft = FFT(b.bufnum, in);

fft2 = FFT(c.bufnum, in);

shifted = PV_PhaseShift270(fft); 

[IFFT(fft2), IFFT(shifted)];  

}.scope;

)


b.free; c.free;

Berlin: clubs bars cafes nightlife going out