# biquad-filter-kernel

> biquad filter kernel that use simple coefficients

Latest version **1.0.0** (published 2016-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install biquad-filter-kernel
pnpm add biquad-filter-kernel
yarn add biquad-filter-kernel
bun add biquad-filter-kernel
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-09-30 |
| First published | 2016-09-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Nao Yonamine |
| Maintainers | mohayonao |
| Keywords | biquad, dsp, filter |

## Links

- npm: https://www.npmjs.com/package/biquad-filter-kernel
- Repository: https://github.com/mohayonao/biquad-filter-kernel
- Homepage: https://github.com/mohayonao/biquad-filter-kernel/
- Issues: https://github.com/mohayonao/biquad-filter-kernel/issues
- npm.io page: https://npm.io/package/biquad-filter-kernel

## Recent versions

- 1.0.0 (latest) — 2016-09-30

## README

# biquad-filter-kernel
[![Build Status](https://img.shields.io/travis/mohayonao/biquad-filter-kernel.svg?style=flat-square)](https://travis-ci.org/mohayonao/biquad-filter-kernel)
[![NPM Version](https://img.shields.io/npm/v/biquad-filter-kernel.svg?style=flat-square)](https://www.npmjs.org/package/biquad-filter-kernel)
[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](http://mohayonao.mit-license.org/)

> biquad filter kernel that use simple coefficients

## Installation

```
$ npm install --save biquad-filter-kernel
```

## API
  - `constructor()`
  - `#process(coeffs, input, output, inNumSamples): void`
    - `coeffs: number[]` filter coefficients
      - `assert(coeffs.length === 5)`
      - coefficients are `[ b0, b1, b2, a1, a2 ]` (a0 = 1)
    - `input: number[]` input signal
      - `assert(input.length === inNumSamples)`
    - `output: number[]` output signal
      - `assert(output.length === inNumSamples)`
    - `inNumSamples: number` number of samples

## Usage

```js
const BiquadFilterKernel = require("biquad-filter-kernel");

const biquadFilter = new BiquadFilterKernel();
const coeffs = [ 0.000606, 0.001213, 0.000606, -1.948941, 0.951366 ];
const input = new Float32Array(1024).map(Math.random);
const output = new Float32Array(1024);

biquadFilter.process(coeffs, input, output, 1024);
```

## See Also

- [biquad-filter-kernel-2](https://github.com/mohayonao/biquad-filter-kernel/tree/master/packages/biquad-filter-kernel-2) / high accurate coefficients version

## License

MIT

---
_Source: https://npm.io/package/biquad-filter-kernel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
