SR to O2 6

6 tap x2 interpolator (upsampler)
Author: Smashed Transistors
License: BSD
Github: tiar/dev/SR_to_O2_6int.axo

Inlets

frac32buffer.bipolar in

Outlets

frac32buffer.bipolar older

frac32buffer.bipolar y0

Declaration
int32_t x0, x1, x2, x3, x4, x5;
Init
x0 = x1 = x2 = x3 = x4 = x5 = 0;
Audio Rate
x0 = x1;
x1 = x2;
x2 = x3;
x3 = x4;
x4 = x5;
x5 = inlet_in;
outlet_y1 = x2;
outlet_y0 =
    (___SMMLA(
        x5 + x0, (int32_t)(0.025665914601895386f * (1 << 27)),
        ___SMMLA(x4 + x1, (int32_t)(-0.04277652433649233f * (1 << 27)),
                 ___SMMUL(x3 + x2, (int32_t)(0.517110609734597f * (1 << 27))))))
    << 5;

Privacy

© 2024 Zrna Research