frac32buffer l
frac32buffer r
frac32buffer l
frac32buffer r
frac32.u.map amount
frac32.u.map depth
rings_fx::Ensemble ensemble;
ensemble.Init((uint16_t *)sdram_malloc(32768));
static float left[BUFSIZE];
static float right[BUFSIZE];
int i;
ensemble.set_amount(q27_to_float(param_amount));
ensemble.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]);
}
ensemble.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]);
}