Beispiel #1
0
float
AnalogFilter::filterout_s(float smp)
{
  int i;
     if (needsinterpolation != 0)
      {
      for (i = 0; i < stages + 1; i++)
	smp=singlefilterout_s(smp, oldx[i], oldy[i], oldc, oldd);
      }

      for (i = 0; i < stages + 1; i++)
        smp=singlefilterout_s(smp, x[i], y[i], c, d);

     return(smp);

};
Beispiel #2
0
float
RBFilter::filterout_s (float smp)
{
    int i;

    if (needsinterpolation != 0) {
        for (i = 0; i < stages + 1; i++)
            smp=singlefilterout_s (smp, st[i], ipar);
        needsinterpolation = 0;
    };

    for (i = 0; i < stages + 1; i++)
        smp=singlefilterout_s (smp, st[i], par);


    return(smp *= outgain);

};