O2 to SR 59

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

Inlets

frac32buffer.bipolar older

frac32buffer.bipolar x0

Outlets

frac32buffer.bipolar out

Declaration
float R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, R13, R14, R15, R16,
    R17, R18, R19, R20, R21, R22, R23, R24, R25, R26, R27, R28, R29, R30;
Init
R1 = R2 = R3 = R4 = R5 = R6 = R7 = R8 = R9 = R10 = R11 = R12 = R13 = R14 = R15 =
    R16 = R17 = R18 = R19 = R20 = R21 = R22 = R23 = R24 = R25 = R26 = R27 =
        R28 = R29 = R30 = 0;
Audio Rate
float x1 = (float)inlet_x1;
float h1x1 = x1 * 0.3167967114236291f;
float h3x1 = x1 * -0.10164126581474016f;
float h5x1 = x1 * 0.056472878314649574f;
float h7x1 = x1 * -0.03590356425550024f;
float h9x1 = x1 * 0.023854182328325296f;
float h11x1 = x1 * -0.015966909428751137f;
float h13x1 = x1 * 0.010553528578562761f;
float h15x1 = x1 * -0.006794829937625732f;
float h17x1 = x1 * 0.004212042043030732f;
float h19x1 = x1 * -0.002484841082005066f;
float h21x1 = x1 * 0.0013753503068182293f;
float h23x1 = x1 * -0.0007008749315804081f;
float h25x1 = x1 * 0.00031898286827647583f;
float h27x1 = x1 * -0.00012279053509672562f;
float h29x1 = x1 * 0.000035881628440564505f;

R30 = R29 + h29x1;
R29 = R28 + h27x1;
R28 = R27 + h25x1;
R27 = R26 + h23x1;
R26 = R25 + h21x1;
R25 = R24 + h19x1;
R24 = R23 + h17x1;
R23 = R22 + h15x1;
R22 = R21 + h13x1;
R21 = R20 + h11x1;
R20 = R19 + h9x1;
R19 = R18 + h7x1;
R18 = R17 + h5x1;
R17 = R16 + h3x1;
R16 = R15 + h1x1;
R15 = R14 + h1x1 + 0.50000063464071f * inlet_x0;
R14 = R13 + h3x1;
R13 = R12 + h5x1;
R12 = R11 + h7x1;
R11 = R10 + h9x1;
R10 = R9 + h11x1;
R9 = R8 + h13x1;
R8 = R7 + h15x1;
R7 = R6 + h17x1;
R6 = R5 + h19x1;
R5 = R4 + h21x1;
R4 = R3 + h23x1;
R3 = R2 + h25x1;
R2 = R1 + h27x1;
R1 = h29x1;
outlet_out = (int32_t)R30;

Privacy

© 2024 Zrna Research