pydsm.audio_weightings.d_weighting
- pydsm.audio_weightings.d_weighting(f, normal=True, power=True)
Returns the D-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. This parameter is ignored, since this weighting function is always normalized.
- 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