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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file itu-r-468-weighting-1.1.2.tar.gz.
File metadata
- Download URL: itu-r-468-weighting-1.1.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5c4cc49f0a23daf39f4a6bf51602f7f236dd486fb1d05244047e024aeb66e78
|
|
| MD5 |
c35c13abb08fa178c877018d3d1e56ae
|
|
| BLAKE2b-256 |
9517fe3cc6d0d2d31e43cad52df222d79d88307844fb232dd751364b8bdd769e
|
File details
Details for the file itu_r_468_weighting-1.1.2-py3-none-any.whl.
File metadata
- Download URL: itu_r_468_weighting-1.1.2-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f897c2bf6304e74a31509342e1c2227c9a2be9bf7e9b2f4fb73d3b421ef79d4
|
|
| MD5 |
1a9974492cc3db08a1a2254001884339
|
|
| BLAKE2b-256 |
63cbc1a516e7bd6a10d4dba9d1911c80274800f052b22dc26adfb47c7cbcd6a1
|