SR to O4 6

x4 interpolator (upsampler)
Author: Smashed Transistors
License: BSD
Github: tiar/dev/SR_to_O4_6.axo

Inlets

frac32buffer.bipolar in

Outlets

frac32buffer.bipolar older

frac32buffer.bipolar y2

frac32buffer.bipolar y1

frac32buffer.bipolar y0

Declaration
float x0, x1, x2, x3, x4, x5;
int32_t y4;
Init
x0 = x1 = x2 = x3 = x4 = x5 = y4 = 0;
Audio Rate
x0 = x1;
x1 = x2;
x2 = x3;
x3 = x4;
x4 = x5;
x5 = (float)inlet_in;
// First stage interpolator
outlet_y2 = (int32_t)x2;
outlet_y3 = (outlet_y2 + y4) >> 1;

y4 = outlet_y0 = (int32_t)((x5 + x0) * 0.025665914601895386f +
                           (x4 + x1) * -0.04277652433649233f +
                           (x3 + x2) * 0.517110609734597f);
// second stage interpolator
outlet_y1 = (outlet_y0 + outlet_y2) >> 1;

Privacy

© 2024 Zrna Research