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 dB 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):
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")
r468(1000, "2khz")
Function Description
r468(frequency_hz, khz_option)
- Takes a frequency value and returns a weighted dB value.
Parameters
frequency_hz : float
- The frequency value (in Hz) must be a value greater 0.
khz_option : str
- Choose
1khzor2khzas an weighting option. The weighting curves have the same shape for both options. They are shifted in a way, that the gain is 0.0 dB at the given frequency (1 or 2 kHz).
Returns
float
- The dB weighted value of the frequency.
Raises
ValueError
- If parameter
frequency_hzis not greater 0. - If parameter
khz_optionis not equal to1khzor2khz.
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.0.4.tar.gz.
File metadata
- Download URL: itu-r-468-weighting-1.0.4.tar.gz
- Upload date:
- Size: 3.6 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 |
c91a3683484880c98d4bcf4bb255a19c02cbedee76feb6e48160fe13ad6ce53b
|
|
| MD5 |
946fa6baf18384d6986a15889d85f119
|
|
| BLAKE2b-256 |
9f5d745277a3a2d9d07bb928df9197a640af3c92cc57db2530a531ae7f6b05f5
|
File details
Details for the file itu_r_468_weighting-1.0.4-py3-none-any.whl.
File metadata
- Download URL: itu_r_468_weighting-1.0.4-py3-none-any.whl
- Upload date:
- Size: 5.6 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 |
32a94fa02497723d9256e0ba26572e9ec5d08eb48bb24b6bb7eb3995b57f59a2
|
|
| MD5 |
89ddf6562485dce3a01b2dd297760010
|
|
| BLAKE2b-256 |
c50b20a43796d7f3308c619f9873a4330be77157b7ac4b26e55cf9b60a277965
|