an open-source digital signal processing and sound synthesis language
about · links · contact


gen-routine (function table) operation

Given a function table of a certain size cursize, allocate and return a new table of size newsize, filled with values resampled from the old table using the kind of interpolation specified by inter. If the two sizes are equivalent, merely make a straight copy of the table. Return NULL if memory allocation error.
typedef enum {
   NO_INTERP = 0,
} InterpolationType;

float resample_gen(float table[], int cursize, int newsize, InterpolationType interp)