send a

delayline definition, read it with "delay/read" objects referencing the instance name of this object
Author: Johannes Taelman
License: BSD
Github: rbrt/patching/send a.axo

Inlets

frac32buffer wave input

Outlets

None

Declaration
static const uint32_t LENGTHPOW = (5);
static const uint32_t LENGTH = (1 << 5);
static const uint32_t LENGTHMASK = ((1 << 5) - 1);
int32_t array[LENGTH];
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] = __SSAT(inlet_in >> 14, 16);

Privacy

© 2024 Zrna Research