interp8

8 channels linear interpolation from k- to s-rate
Author: Remco van der Most
License: BSD
Github: sss/conv/interp8.axo

Inlets

frac32 i1

frac32 i2

frac32 i3

frac32 i4

frac32 i5

frac32 i6

frac32 i7

frac32 i8

Outlets

frac32buffer o1

frac32buffer o2

frac32buffer o3

frac32buffer o4

frac32buffer o5

frac32buffer o6

frac32buffer o7

frac32buffer o8

Declaration
int32_t _prev[8];
int32_t _step[8];
Control Rate
int32_t in[8], _i[8];
in[0] = inlet_i1;
in[1] = inlet_i2;
in[2] = inlet_i3;
in[3] = inlet_i4;
in[4] = inlet_i5;
in[5] = inlet_i6;
in[6] = inlet_i7;
in[7] = inlet_i8;
for (int i = 0; i < 8; i++) {
  _step[i] = (in[i] - _prev[i]) >> 4;
  _i[i] = _prev[i];
  _prev[i] = in[i];
}
Audio Rate
outlet_o1 = _i[0];
outlet_o2 = _i[1];
outlet_o3 = _i[2];
outlet_o4 = _i[3];
outlet_o5 = _i[4];
outlet_o6 = _i[5];
outlet_o7 = _i[6];
outlet_o8 = _i[7];
for (int i = 0; i < 8; i++) {
  _i[i] += _step[i];
}

Privacy

© 2024 Zrna Research