wouldn't the following formula be the formula to calculate the amplitude from a fft table?
amp[index] = pow (pow (tableread(re, index), 2) + pow(tableread(im, index), 2) , 0.5);
if I use this formula I get amplitude values which don't make sense, if i put a 43 hz sine into a 1024 samples framed fft opcode, i get amplitude values (using the formula above) of 4 (!?) I couldn't find what the re and im table values should be but if the formula above is right, it would result in a sqrt(8) as maximum (!?)
Peter
This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 12:03:58 EST