close all Fs = 44100; bits = 16; x = [0:25*480 - 1]; y1 = sin(2*pi*440/Fs*x); y2 = sin(2*pi*450/Fs*x); y = y1 + y2; % 2 Sines Close Together - Full Quantization %[Fs, xr, bits, x] = encode(y, '', 0, 0, -1, 'sinClose_before.wav','sinClose_full_after.wav'); % 2 Sines Close Together - Narrow Quantization [Fs, xr, bits, x] = encode(y, '', 0, 0, 0, '','sinClose_narrow_after.wav'); % 2 Sines Close Together - 8-bit Quantization [Fs, xr, bits, x] = encode(y, '', 0, 0, 8, '','sinClose_8_after.wav'); % 2 Sines Close Together - 16-bit Quantization [Fs, xr, bits, x] = encode(y, '', 0, 0, 16, '','sinClose_16_after.wav'); % 2 Sines Close Together - ATH Quantization %[Fs, xr, bits, x] = encode(y, '', 0, 0, 99, '','sinClose_ATH_after.wav');