frac32buffer l
frac32buffer r
frac32buffer l
frac32buffer r
frac32.u.map amount
frac32.u.map depth
rings_fx::Chorus chorus;
chorus.Init((uint16_t *)sdram_malloc(32768));
static float left[BUFSIZE];
static float right[BUFSIZE];
int i;
chorus.set_amount(q27_to_float(param_amount));
chorus.set_depth(q27_to_float(param_depth));
for (i = 0; i < BUFSIZE; i++) {
left[i] = q27_to_float(inlet_l[i]);
right[i] = q27_to_float(inlet_r[i]);
}
chorus.Process(left, right, BUFSIZE);
for (i = 0; i < BUFSIZE; i++) {
outlet_l[i] = float_to_q27(left[i]);
outlet_r[i] = float_to_q27(right[i]);
}