Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.
/ audio-filter Public archive

Collection of digital filters

Notifications You must be signed in to change notification settings

scrapjs/audio-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

audio-filter experimental

WORK IN PROGRESS, please get back after a while to not get disappointed.

Collection of digital filters, for audio & dsp applications.

Usage

npm install audio-filter

Produce 1024 samples of grey noise:

const WhiteNoise = require('audio-noise/white')
const LoudnessFilter = require('audio-filter/loudness')

//create noise generator
let noise = WhiteNoise()

//create filter instance
let filter = LoudnessFilter()

//generate frame of gray noise
let data = filter(noise(new Float32Array(1024)))

API

Filters can be used separately as require('audio-filter/<type>') or as a bundle require('audio-filter').<type>. Every filter constructor creates a filtering function based on options. options may provide filter-specific parameters, usually numbers or functions for varying parameters.

const createFilter = require('audio-filter/<some>')
let filter = createFilter(options)

let data = filter(samples)

Implemented filters:

  • leaky
  • biquad
  • loudness
  • lowpass
  • hipass
  • rumble
  • flutter
  • noise
  • bessel
  • butterworth
  • matched
  • elliptical
  • linkwitz-riley
  • chebyshev
  • savitzky-golay
  • curve (custom f-curve)

Filters

leaky({lambda: 0.95, y: 0})

Leaky integrator.

See also

  • a-weighting — collection of frequency weighting curves.

About

Collection of digital filters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published