🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

audio-filter

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audio-filter

Collection of digital filters

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
112
166.67%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

audio

FAQs

Package last updated on 28 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts