diffuser

a diffuser effect, based on the elements dsp code open sourced by mutable instruments. any bugs/issues you find are our own, report on the axoloti forum. Thanks to Olivier Gillet from Mutable Instruments for open sourcing their code. http://mutable-instruments.com
Author: Mark Harris
License: GPL
Github: fx/lmnts/diffuser.axo

Inlets

frac32buffer in

Outlets

frac32buffer out

Declaration
elements::Diffuser diffuser;

float *alloc_buffer() {
  static float buffer[32768] __attribute__((section(".sdram")));
  return buffer;
}
Init
diffuser.Init(alloc_buffer());
Control Rate
static float buf[BUFSIZE];

int i;

for (i = 0; i < BUFSIZE; i++) {
  buf[i] = q27_to_float(inlet_in[i]);
}

diffuser.Process(buf, BUFSIZE);

for (i = 0; i < BUFSIZE; i++) {
  outlet_out[i] = float_to_q27(buf[i]);
}

Privacy

© 2024 Zrna Research