Compute the Fourier transform and output an amplitude spectrum of input signal