working fft code, but tweaked (two spots) to show waveform in chunks