public static void SetButterworthHighpassCoefficients( ButterworthHighpassRec Filter, double Cutoff, double SamplingRate) { if (Cutoff == Filter.OldCutoff) { return; } Filter.OldCutoff = Cutoff; ComputeButterworthHighpassCoefficients( ref Filter.iir, Cutoff, SamplingRate); }
/* apply filter to an array of values, adding result to output array */ public void Apply( float[] XinVector, int XInVectorOffset, float[] YoutVector, int YoutVectorOffset, int VectorLength, float OutputScaling, SynthParamRec SynthParams) { ButterworthHighpassRec Filter = this; IIR2DirectIMAcc( ref Filter.iir, XinVector, XInVectorOffset, YoutVector, YoutVectorOffset, VectorLength, OutputScaling); }