restricted sample rate set now enforced for wav; spectrogram width now calculated from sample rate and window size