Skip to content

filter.FirFilterWin.Interface.FilterSpec

Christian d'Heureuse edited this page Jun 7, 2026 · 2 revisions

dsp-collection / filter/FirFilterWin / FilterSpec

Interface: FilterSpec

Defined in: filter/FirFilterWin.ts:32

Parameters for creating an FIR filter kernel.

The current implementation only supports LP filters yet.

Properties

normFirstMinFreq?

optional normFirstMinFreq?: number;

Defined in: filter/FirFilterWin.ts:50

normFirstMinFreq is the normalized frequency of the first minimum of the filter transfer curve.
Formula: normFirstMinFreq = firstMinFrequency / sampleRate = 1 / waveLengthOfFirstMinimumInSamples


width?

optional width?: number;

Defined in: filter/FirFilterWin.ts:44

Filter width in samples.
Either width or normFirstMinFreq must be specified.


windowFunctionId

windowFunctionId: string;

Defined in: filter/FirFilterWin.ts:38

ID of the window function to be used.

See

WindowFunctions.windowFunctionIndex

Clone this wiki locally