Interpolation (linear)

Rather than rounding or truncating index values, it is more accurate to interpolate $ x(n)$.

Linear interpolation of $ x(y(n))$:

Example: if $ y(n)=6.5$, the inferred value would be on the line between $ x(6)$ and $ x(7)$, equidistant from indeces 6 and 7:

$\displaystyle z(6.5) = \frac{x(6) + x(7)}{2} = .5x(6) + .5x(7)
$

More generally, for $ y(n) = n.\eta$, where $ n$ is the integer part and $ \eta$ is the fractional part,

$\displaystyle z(n+\eta) = (1-\eta)x(n) + (\eta)x(n+1),
$


``Music 171: Wavetables and Samplers'' by Tamara Smyth, Department of Music, University of California, San Diego (UCSD).
Download PDF version (wavetables.pdf)
Download compressed PostScript version (wavetables.ps.gz)
Download PDF `4 up' version (wavetables_4up.pdf)
Download compressed PostScript `4 up' version (wavetables_4up.ps.gz)

Copyright © 2019-10-15 by Tamara Smyth.
Please email errata, comments, and suggestions to Tamara Smyth<trsmyth@ucsd.edu>