close all Fs = 44100; bits = 16; x = [0:25*480 - 1]; y = sin(2*pi*440/Fs*x); % Pure Sine Wave - Full Quantization [Fs, xr, bits, x] = encode(y, '', 0, 0, -1, 'sin_before.wav','sin_full_after.wav'); % Pure Sine Wave - Narrow Quantization [Fs, xr, bits, x] = encode(y, '', 0, 0, 0, '','sin_narrow_after.wav'); % Pure Sine Wave - 8-bit Quantization [Fs, xr, bits, x] = encode(y, '', 0, 0, 8, '','sin_8_after.wav'); % Pure Sine Wave - 16-bit Quantization [Fs, xr, bits, x] = encode(y, '', 0, 0, 16, '','sin_16_after.wav'); % Pure Sine Wave - ATH Quantization %[Fs, xr, bits, x] = encode(y, '', 0, 0, 99, '','sin_ATH_after.wav');