take data form the microphone and calculate the FFT and the power spectrum of a signal