equal_loudness_contours#

equal_loudness_contours(phones)[source]#

“This function will return a 29-point equal loudness contour for your desired phon level. The frequencies evaluated in this function only span from 20Hz - 12.5kHz, and only 29 selective frequencies are covered. This is the limitation of the ISO standard”.

Function based on the MATLAB project from Jeff Tackett, ‘ISO 226 Equal-Loudness-Level Contour Signal’ (es.mathworks.com/matlabcentral/fileexchange/7028-iso-226-equal-loudness-level-contour-signal).

Parameters:

phones (int) – Logarithmic unit for the evaluation curve of the perceived sound (1phon = 1dB @ 1kHz).

Returns:

  • spl_array (numpy.array) – Sound pressure level (‘SPL’) values.

  • frequencies_array (numpy.array) – Frequencies in which the function computes the resulting ‘SPL’ values.