O2write

Author: Smashed Transistors
License: LGPL
Github: tiar/delay/O2write.axo

Inlets

frac32buffer older

frac32buffer x0

Outlets

None

Attributes

combo size

Declaration
static const uint32_t LENGTHPOW = (attr_size);
static const uint32_t LENGTH = 1 << LENGTHPOW;
static const uint32_t LENGTHMASK = LENGTH - 1;
int16_t array[LENGTH];
uint32_t writepos;
Init
writepos = 0;
for (int i = 0; i < LENGTH; i++)
  array[i] = 0;
Audio Rate
writepos = (writepos + 1) & LENGTHMASK;
array[writepos] = __SSAT(inlet_x1 >> 14, 16);
writepos = (writepos + 1) & LENGTHMASK;
array[writepos] = __SSAT(inlet_x0 >> 14, 16);

Privacy

© 2024 Zrna Research