kdelay

K-rate delay line, fixed delay time. simple mod of delay/echo by Johannes Taelman.
Author: robert schirmer
License:
Github: rbrt/control/kdelay.axo

Inlets

frac32 in

Outlets

frac32 out

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;
Control Rate
int32_t rd = delayline[delayrindex++];
delayline[delaywindex++] = __SSAT(inlet_in >> 14, 16);
if (delayrindex == attr_delaylength)
  delayrindex = 0;
if (delaywindex == attr_delaylength)
  delaywindex = 0;
outlet_out = rd << 14;

Privacy

© 2024 Zrna Research