ap2

Allpass reverb section. This version uses SD-ram!!!! The factory version that uses SRAM, can maximum load 23 with 1000 samples delay. This version I loaded more than 100 with 1000 samples delay and the patch still compiled. Awesome. Besides that, it is identical to the factory allpass filter.
Author: Johannes Taelman - Edited by Jaffasplaffa
License: BSD
Github: jaffa/filt/ap2.axo

Inlets

frac32buffer in

frac32 mod input

Outlets

frac32buffer out

Parameters

frac32.s.map.ratio g

Attributes

spinner delay

Declaration
int32_t *d;
// int16_t d[attr_delay];
int dpos;
Init
static int32_t _array[attr_poly][attr_delay] __attribute__((section(".sdram")));
d = &_array[parent->polyIndex][0];
int i;
for (i = 0; i < attr_delay; i++)
  d[i] = 0;
dpos = 0;
Control Rate
int32_t g2 = inlet_g + param_g << 4;
Audio Rate
int32_t dout = d[dpos] << 16;
int32_t din = ___SMMLA(g2, dout, inlet_in >> 1);
d[dpos++] = din >> 15;
outlet_out = ___SMMLS(g2, din << 1, dout >> 1) << 1;
if (dpos == attr_delay)
  dpos = 0;

Privacy

© 2024 Zrna Research