O2 to SR Bellanger

19 tap /2 decimator (downsampler)
Author: Smashed Transistors
License: BSD
Github: tiar/conv/O2_to_SR_Bellanger.axo

Inlets

frac32buffer.bipolar older

frac32buffer.bipolar x0

Outlets

frac32buffer.bipolar out

Declaration
float R1, R2, R3, R4, R5, R6, R7, R8, R9, R10;
Init
R1 = R2 = R3 = R4 = R5 = R6 = R7 = R8 = R9 = R10 = 0;
Audio Rate
float x1 = (float)inlet_x1;
float h1x1 = x1 * (5042 / 16384.0f);
float h3x1 = x1 * (-1277 / 16384.0f);
float h5x1 = x1 * (429 / 16384.0f);
float h7x1 = x1 * (-116 / 16384.0f);
float h9x1 = x1 * (18 / 16384.0f);

R10 = R9 + h9x1;
R9 = R8 + h7x1;
R8 = R7 + h5x1;
R7 = R6 + h3x1;
R6 = R5 + h1x1;
R5 = R4 + h1x1 + 0.5f * inlet_x0;
R4 = R3 + h3x1;
R3 = R2 + h5x1;
R2 = R1 + h7x1;
R1 = h9x1;
outlet_out = (int32_t)R10;

Privacy

© 2024 Zrna Research