biquad-filter-kernel-2
biquad filter kernel that use high accurate coefficients
Installation
$ npm install --save biquad-filter-kernel-2
API
constructor()
#process(coeffs, input, output, inNumSamples): void
coeffs: number[][]
filter coefficientsassert(coeffs.length === 5)
assert(coeffs.every(values => values.length === inNumSamples))
- coefficients are
[ b0, b1, b2, a1, a2 ]
(a0 = 1)
input: number[]
input signalassert(input.length === inNumSamples)
output: number[]
output signalassert(output.length === inNumSamples)
inNumSamples: number
number of samples
Usage
const BiquadFilterKernel = ; const biquadFilter = ;const coeffs = 0000606 0001213 0000606 -1948941 0951366;const input = 1024;const output = 1024; biquadFilter;
See Also
- biquad-filter-kernel / simple coefficients version
License
MIT