pydsm.audio_weightings.f_weighting¶
-
pydsm.audio_weightings.
f_weighting
(f, normal=True, power=True)¶ Returns the F-weighting as a function of frequency.
- Parameters
- ffloat or array of floats
frequency where the weighting function is computed
- normalbool
whether the function should be normalized to have unit gain at 1 kHz.
- powerbool
whether the function should express the weighting in terms of acoustic power or signal amplitude
- Returns
- wfloat or array of floats
value of the weigting function
Notes
The F-weighting function is documented in [1].
- 1
Robert A. Wannamaker “Psychoacoustically Optimal Noise Shaping,” J. Audio Eng. Soc., Vol. 40 No. 7/8 1992 July/August