function part2(wavefile,newfile,percent) [y,fs,nbits]=wavread(wavefile); % Reads in the stereo wavfile ym=y(:,1); % Takes channel 1 audio N=length(ym)+1; % Number of samples (assumed odd). ymf=fft(ym,N); % We take a fast Fourier Transform of the song clear ym; zmf=ymf; % Make a copy of the FFT %Here we zero out anything that is less than percent*(max in zmf) idx = find(zmf