pydsm.audio_weightings.a_weighting

pydsm.audio_weightings.a_weighting(f, normal=True, power=True)

Returns the A-weighting as a function of frequency.

Parameters:

f : float or array of floats

frequency where the weighting function is computed

normal : bool

whether the function should be normalized to have unit gain at 1 kHz.

power : bool

whether the function should express the weighting in terms of acoustic power or signal amplitude

Returns:

w : float or array of floats

value of the weigting function