bug fixes and better parameters for the sound generation script