/*******************************************/ /* Linearly Interpolating Delay Line */ /* Object by Perry R. Cook 1995-96 */ /* This one uses a delay line of maximum */ /* length specified on creation, and */ /* linearly interpolates fractional */ /* length. It is designed to be more */ /* efficient if the delay length is not */ /* changed very often. */ /*******************************************/ #include "DLineL.h" DLineL :: DLineL(long max_length) { length = max_length; inputs = (MY_FLOAT *) malloc(length * MY_FLOAT_SIZE); this->clear(); outPoint = 0; inPoint = length >> 1; } DLineL :: ~DLineL() { free(inputs); } void DLineL :: clear() { long i; for (i=0;i