LoudnessISO532_1_Stationary#

class ansys.sound.core.psychoacoustics.LoudnessISO532_1_Stationary(signal=None, field_type='Free')#

Computes ISO 532-1:2017 loudness for stationary sounds.

This class computes the loudness of a signal according to the ISO 532-1:2017 standard, corresponding to the “Zwicker method”, for stationary sounds.

Examples

Compute the loudness of a signal in free field, and display its specific loudness.

>>> from ansys.sound.core.psychoacoustics import LoudnessISO532_1_Stationary
>>> loudness = LoudnessISO532_1_Stationary(signal=my_signal, field_type="Free")
>>> loudness.process()
>>> loudness_value = loudness.get_loudness_sone()
>>> loudness_level_value = loudness.get_loudness_level_phon()
>>> loudness.plot()

See also

Calculate psychoacoustic indicators

Example demonstrating how to compute various psychoacoustic indicators.

Class instantiation takes the following parameters.

Parameters:
signalField, default: None

Signal in Pa on which to compute loudness.

field_typestr, default: “Free”

Sound field type. Available options are “Free” and “Diffuse”.

Methods

LoudnessISO532_1_Stationary.get_bark_band_frequencies()

Get Bark band frequencies.

LoudnessISO532_1_Stationary.get_bark_band_indexes()

Get Bark band indexes.

LoudnessISO532_1_Stationary.get_loudness_level_phon()

Get the loudness level in phon.

LoudnessISO532_1_Stationary.get_loudness_sone()

Get the loudness in sone.

LoudnessISO532_1_Stationary.get_output()

Get loudness, loudness level, specific loudness.

LoudnessISO532_1_Stationary.get_output_as_nparray()

Get loudness data in a tuple of NumPy arrays.

LoudnessISO532_1_Stationary.get_specific_loudness()

Get the specific loudness.

LoudnessISO532_1_Stationary.plot()

Plot the specific loudness.

LoudnessISO532_1_Stationary.process()

Compute the loudness.

Attributes