Table of Contents

Method LowPassFilter

Namespace
LMKit.Media.Audio
Assembly
LM-Kit.NET.dll

LowPassFilter(float[], int, float, int)

Applies a Hamming-windowed sinc FIR low-pass filter to the input data.

public static float[] LowPassFilter(float[] input, int srcRate, float cutoffFreq, int numTaps = 101)

Parameters

input float[]

Input float samples to filter.

srcRate int

Original sample rate of the input, in Hz.

cutoffFreq float

Cutoff frequency, in Hz, of the low-pass filter.

numTaps int

Number of filter coefficients (taps).

Returns

float[]

Filtered float array of the same length as input.