write 32b

delayline definition, read with delread~
Author: Johannes Taelman, Jan Hofmann
License: BSD
Github: jho/delay/write 32b.axo

Inlets

frac32buffer wave input

Outlets

None

Attributes

combo size

Declaration
static const uint32_t LENGTHPOW = (attr_size);
static const uint32_t LENGTH = (1 << attr_size);
static const uint32_t LENGTHMASK = ((1 << attr_size) - 1);
int32_t array[1 << attr_size];
uint32_t writepos;
Init
int i;
writepos = 0;
for (i = 0; i < LENGTH; i++)
  array[i] = 0;
Audio Rate
writepos = (writepos + 1) & LENGTHMASK;
array[writepos] = inlet_in;

Privacy

© 2024 Zrna Research