function RMSE = signalcompare3(Fs,b)

x=cos((1:2^(12))*2*pi*64*5/2^(13));
y=cos((1:2^(12))*2*pi*64*4/2^(13));
x=x+y; %should be a chord since 2:1 frequency

out = simpleScaledCodec(x,Fs,b);

trunc_x=x(33:end-32)';
if length(trunc_x)==length(out)
    disp('Truncated x is same length as compressed signal')
end

trunc_x=0.3*trunc_x/(max(abs(trunc_x)));

for i=1:length(out)
    err(i)=trunc_x(i)-out(i);
end
RMSE = norm(err,2)/sqrt(length(err));
end