better pitch detection

used john’s octave code. fftw_complex class makes complex math fugly.
So be it.