LoudnessANSI_S3_4#

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

Computes ANSI S3.4-2007 loudness.

This class computes the loudness of a signal according to the ANSI S3.4-2007 standard. The scope of this standard is now covered by the ISO 532-2:2017 standard.

See also

LoudnessISO532_2

Examples

Compute the loudness of a signal in free field.

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

Class instantiation takes the following parameters.

Parameters:
signalField, default: None

Input signal in Pa.

field_typestr, default: “Free”

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

Methods

LoudnessANSI_S3_4.get_loudness_level_phon()

Get the loudness level in phon.

LoudnessANSI_S3_4.get_loudness_sone()

Get the loudness in sone.

LoudnessANSI_S3_4.get_output()

Get loudness data.

LoudnessANSI_S3_4.get_output_as_nparray()

Get loudness data in a tuple of NumPy arrays.

LoudnessANSI_S3_4.plot()

Plot the output.

LoudnessANSI_S3_4.process()

Compute the loudness.

Attributes

LoudnessANSI_S3_4.field_type

Sound field type.

LoudnessANSI_S3_4.signal

Input signal in Pa.