function for spectral sweep generation
integrate delay comp
added spectral generated sweep