extracts addWhiteNoise function
extracts addPulse and addBandNoise.