frac32 feedback
frac32buffer input
frac32buffer output
spinner delaylength
uint32_t delaywindex;
uint32_t delayrindex;
int16_t delayline[attr_delaylength];
int i;
for (i = 0; i < attr_delaylength; i++)
delayline[i] = 0;
delaywindex = 0;
delayrindex = 1;
int32_t rd = delayline[delayrindex++];
delayline[delaywindex++] =
__SSAT((inlet_in >> 14) + ___SMMUL(rd << 5, inlet_feedback), 16);
if (delayrindex == attr_delaylength)
delayrindex = 0;
if (delaywindex == attr_delaylength)
delaywindex = 0;
outlet_out = rd << 14;