With a thru box, we define a waveshaping transfer function that will
do nothing to the signal.
What is the shape of such a transfer function?
Though this may not seem very interesting, it's a good first
step in understanding of how we use our waveshaping function and also
to make sure we've properly implemented linear interpolation.
fs = 8;
dur = 1;
nT = [0:1/fs:dur-1/fs];
N = length(nT);
x = cos(2*pi*(1/dur)*nT); % input
xsc = (x + abs(min(x))); % offset x
xsc = xsc/max(xsc)*(N-1) + 1; % scale x
w = linspace(-1, 1, N); % waveshaper
y = lininterp(w, xsc);