17template<
typename T,
int NC = 1>
26 inline T process(T x, T a) {
27 const T y = y_m1 = x + a * y_m1;
38 inline T process(T x, T b) {
39 const T y = x - b * x_m1;
51 void ProcessBlock(T** inputs, T** outputs,
int nChans,
int nFrames)
55 for (
auto s=0; s<nFrames; s++)
57 for (
auto c = 0; c < nChans; c++)
59 const auto x = inputs[c][s];
60 outputs[c][s] = mPole[c].process(mZero[c].process(x, T(1.0)), T(0.995));
IPlug Constant definitions, Types, magic numbers.