Sample Interpolation Hub

Created: 2020-09-06T04:07:17+00:00

Return to the Index

Problem Statement

When you have a table of samples with sample 1 and sample 2, but you are playing at a different speed so you need sample 1.7. Since this does not exist (it is between discrete values) you have to fake it.

TODO lanczos

TODO sinc

Solutions

Lazy shit mode: just floor/ceil/round and use sample 1 or sample 2. Jagged waveforms and prone to aliasing but its cheap.

Linear interpolation: draw a line between sample 1 and sample 2 and take the value which is somewhere in between.

Newton interpolation

Creates a polynomial curve using the input and outputs of a function, then asks the function to synthesize the data.

Hermite interpolation

Creates a polynomial curve using the derivatives of a function, then asks the function to synthesize the data.

Reading

FL studio thread talking about interpolation types