Function to compute crude STFT