Added ramping, resampling and spectrum shaped noise. Fixed some major bugs about sampling rate