oo?steve wrote:Cool.
You lost me here:
Where did this equation come from?This would probably be handled OO.Code: Select all
(atan (+ (* s-1 c0) (* c-1 s0)) (- (* c-1 c0) (* s-1 s0))) (psetq c-1 c0 s-1 (* -1 s0))
Well, the atan function works either with real or complex numbers (unfortunately the only nyquist function that can do this).
It returns a angle in radiants (from -pi to pi). the argument is essentially "real divided by imaginary". The phase is not taken from the actual complex number but rather from the past number multiplied by the current one. All inside atan is a multiplication of two complex numbers.
The last line saves the current rex and imx and multiplies imx (the sine term) by -1, this gives the conjugate.
For example: You can take an FFT, multiply all imaginary numbers by -1 and you'll get the conjugate. If you transform this back to the time domain, the whole sound will be reversed (in time).
I think I've confused the terms (although the output is essentially the same with a 90 deg phase shift).
It needs a lot simplification anyway.