Jump to content


fft phase quick question


2 replies to this topic

#1 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2725 posts

Posted 01 October 2008 - 05:27 AM

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 Reedbeta

    DevMaster Staff

  • Administrators
  • 5310 posts
  • LocationSanta Clara, CA

Posted 01 October 2008 - 05:49 AM

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.
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2725 posts

Posted 01 October 2008 - 08:56 AM

thankyou





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users