/* This function is used to initialize the delay object */ void Delay_Init(double delay_samples,double dfb,double dfw, double dmix) { Delay_set_delay(delay_samples); Delay_set_fb(dfb); Delay_set_fw(dfw); Delay_set_mix(dmix); del.wrtPtr = &d_buffer[MAX_BUF_SIZE-1]; }
/*---------------------------------------------------------------------------------------------*/ void ChorusDelay_init(monochorus_t *del, float delay, float dfb, float dfw, float dmix) { Delay_set_fb(del, dfb); Delay_set_fw(del, dfw); Delay_set_mix(del, dmix); Delay_set_delay(del, delay); del->in_idx = DEPTH - 1;// Place the input pointer at the end of the buffer del->mode = 1; }