I’m following the Nyquist FFT Tutorial. But I’m getting a slightly different result than expected. The output from (fft-test) should have -1 in the 9th array element, but I’m getting -16:
It looks like Nyquist has been updated since that tutorial was written.
Testing in Audacity 1.3.14 I get the same result as you ( 9th element -16, all other elements close to zero).
Testing in Audacity 1.3.4 I get the same result as the tutorial (9th element -1, all other elements zero or close to zero).
I’ve also tested with the standalone version of Nyquist 3.05 and I get the same result as in Audacity 1.3.14.
Sorry, I can’t help with the FFT theory stuff, I don’t understand it.
I’ve been going through parts of the FFT tutorial (on a 32-bit machine) and although I get different results in some cases to those stated in the tutorial (specifically the original question in this thread) it does appear to all work.
Yes, Nyquist is not 64-bit compatible, where the major problem is that the XLISP garbage collector is hard-coded to 32-bit memory pointers. I’m wondering all the time why Audacity Nyquist plugins do not produce serial crashes on 64-bit computers.
But I have still not seriously tested Nyquist in Audacity for memory leaks to tell the truth…