markert / fili.js

Demo Implementation
http://markert.github.io/fili.js/
MIT License
94 stars 25 forks source link

A-Weighting filter #10

Closed jesucarr closed 7 years ago

jesucarr commented 8 years ago

Is it possible to implement an A-weighting filter with this library? http://www.diracdelta.co.uk/science/source/a/w/aweighting/source.html#.VtRsF5MrJE4

markert commented 7 years ago

I added the algorithm posted here: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4331191/

This will give you the filter from the example:

var iirCalculator = new Fili.CalcCascades(); var coeffsBessel = iirCalculator.aweighting({ order: 1, characteristic: 'butterworth', Fs: 1000, Fc: 250 }); var filterButterworth = new Fili.IirFilter(coeffsButterworth);