echo fdbk

Audio delay with feedback, fixed delay time
Author: Johannes Taelman
License: BSD
Github: delay/echo fdbk.axo

Inlets

frac32 feedback

frac32buffer input

Outlets

frac32buffer output

Attributes

spinner delaylength

Declaration
uint32_t delaywindex;
uint32_t delayrindex;
int16_t delayline[attr_delaylength];
Init
int i;
for (i = 0; i < attr_delaylength; i++)
  delayline[i] = 0;
delaywindex = 0;
delayrindex = 1;
Audio Rate
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;

Privacy

© 2024 Zrna Research