A zero dependency Python ITU-R 468 noise weighting filter (1 kHz and 2 kHz)
Project description
itu-r-468-weighting
A zero dependency Python ITU-R 468 noise weighting filter (1 kHz and 2 kHz)
Introduction
This project consists of a sole function named r468
. The function takes a frequency value and returns a weighted gain value. For weightening, the ITU-R BS.468-4 standard and the SMPTE RP 2054:2010 recommended practice are followed.
The math for this project is taken from Wikipedia (as of 2019-08-08):
Filter with gain in dB ("db" option):
Filter with gain factor ("factor" option):
Installation
pip install itu-r-468-weighting
More infos on the project page at PyPI.
Example Usage
from itu_r_468_weighting.filter import r468
r468(1000, "1khz", "db") # returns gain in dB
r468(1000, "2khz", "db") # returns gain in dB
r468(1000, "1khz", "factor") # returns gain factor
r468(1000, "2khz", "factor") # returns gain factor
Documentation
See docstring of function r468()
in itu_r_468_weighting/filter.py
or create and read the docs from source in docs/
or read them online at readthedocs.io.
Contributing
See CONTRIBUTING.md file.
Project page
This project is hosted on GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for itu-r-468-weighting-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbfd7ab70d1f5b43b8354bb65e2d7bbdc121df5bb2dd5cfde951a71461c18bcb |
|
MD5 | 4c61a7af3a3961c2b7e1eac59ed29ff6 |
|
BLAKE2b-256 | dda94ef3bb7a2c8016891a4e88943b3b1d20abd48c2979d7cc0ed455fa264ead |
Hashes for itu_r_468_weighting-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2b76c1eb3d91fa2a3d2a3843ad081f6a431b6db86897e0a8abcf241315369d2 |
|
MD5 | 67f67c21fc1cbab8e63f5bfea67bdd43 |
|
BLAKE2b-256 | f1f90e3bf0c7406eaf7a3bd58e72d30c74b740dae5661a8a8003afe3f2a0ee80 |