itu_r_468_weighting package

Submodules

itu_r_468_weighting.constants module

itu_r_468_weighting.filter module

itu_r_468_weighting.filter.r468(frequency_hz: Union[int, float], khz_option: str, returns: str) → float

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.

frequency_hzint or float

The frequency value (in Hz) must be a value greater 0.

khz_optionstr

Choose 1khz or 2khz as an weighting option. The weighting curves have a similar characteristic for both options, but are using a different amplification factor. They are shifted in a way, that the gain is 0.0 dB at the given frequency (1 or 2 kHz).

returnsstr

Choose db or factor as option. db will output the weighted gain value in dB. factor will output the weighted gain value as a factor.

float

The weighted value of the frequency.

ValueError

If parameter frequency_hz is not greater 0. If parameter khz_option is not equal to 1khz or 2khz.

Module contents