#define CHORUS_DELAY_LENGTH_SAMPLES (15*AUDIO_BLOCK_SAMPLES) // one AUDIO_BLOCK_SAMPLES = 2.902ms; you need doubled length, e.g. delay point is 20ms, so you need up to 40ms delay!
// Generate a an array with the size of INTERPOLATION_WINDOW_SIZE of x/y values around mod_idx for interpolation
uint8_tc;
int16_tc_mod_idx=_circ_idx-int(mod_idx+0.5);// This is the pointer to the value in the circular buffer at the current modulation index
int16_tc_mod_idx=_circ_idx-int(round(mod_idx));// This is the pointer to the value in the circular buffer at the current modulation index
for(j=~(INTERPOLATION_WINDOW_SIZE>>1)|0x01,c=0;j<=INTERPOLATION_WINDOW_SIZE>>1;j++,c++)// only another way to say: from -INTERPOLATION_WINDOW_SIZE/2 to INTERPOLATION_WINDOW_SIZE/2
{
int16_tjc_mod_idx=(c_mod_idx+j)%_delay_length;// The modulation index pointer plus the value of the current window pointer