fft phase quick question

Fd80f81596aa1cf809ceb1c2077e190b
0
rouncer 103 Oct 01, 2008 at 05:27

sorry if i sound confused, but i know a little bit more now about how the fft works… just a quick question

anyway. is -atan2(real[bin],imaginary[bin]) a way to get the phase angle for the bin? because im getting some success with it but im not sure if its the correct way to do it.

2 Replies

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Oct 01, 2008 at 05:49

I believe it should be: atan2(imaginary, real)
It’s because atan2 is defined weirdly and takes its arguments as y, x instead of x, y.

Fd80f81596aa1cf809ceb1c2077e190b
0
rouncer 103 Oct 01, 2008 at 08:56

thankyou