function readInput(filename, l, start, stop) close all [y, Fs, bits] = wavread(filename); if start == -1 y = y'; else y = y(start:stop)'; end length(y)/480 before = strcat(l, '_before.wav'); full = strcat(l,'_full_after.wav'); narrow = strcat(l,'_narrow_after.wav'); eight = strcat(l,'_8_after.wav'); sixteen = strcat(l,'_16_after.wav'); ATH = strcat(l,'_ATH_after.wav'); % Wave - Full Quantization %[Fs, xr, bits, x] = encode(y, '', 0, 0, -1, before, full); % Wave - Narrow Quantization [Fs, xr, bits, x] = encode(y, '', 0, 0, 0, '',narrow); % Wave - 8-bit Quantization %[Fs, xr, bits, x] = encode(y, '', 0, 0, 8, '',eight); % Wave - 16-bit Quantization %[Fs, xr, bits, x] = encode(y, '', 0, 0, 16, '',sixteen); % Wave - ATH Quantization %[Fs, xr, bits, x] = encode(y, '', 0, 0, 99, '',ATH);