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 returned gain value is implicitly returned as a weighted gain value in dB, but can explicitly be returned as a weighted gain factor.
The math for this project is taken from Wikipedia (as of 2019-08-08):
Plot of filter in frequency|gain (in dB) domain:
Plot of filter in frequency|gain domain:
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") # returns gain in dB
r468(1000, "2khz") # returns gain in dB
r468(1000, "1khz", "db") # returns gain in dB
r468(1000, "2khz", "db") # returns gain in dB
r468(1000, "1khz", "norm") # returns gain factor
r468(1000, "2khz", "norm") # returns gain factor
Function Description
See docstring in function r468
for further description.
Developement
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-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 234ca1bab8227ea0628619b73e43f36c0196494428b279b82ff21a3843bc738d |
|
MD5 | bcdf940176b345e24212cc4d9fccdb59 |
|
BLAKE2b-256 | 605bdc683006478c52b7b4f1e3a129f31df00e43c5c1e896ff363b99dd829e3f |
Hashes for itu_r_468_weighting-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ced17d1d33534644672c853b264c2d578b06ba4ac193e5e1f3938eb957c38bfa |
|
MD5 | b51f64e216e2a457a921cf0f145b77c3 |
|
BLAKE2b-256 | 7310b8f37ac8b0ce37fc1d16fc0b10ca22e9d4ab90f1373348b7e464c8f3c54c |