TonalityECMA418_2#

class ansys.sound.core.psychoacoustics.TonalityECMA418_2(signal=None)#

Computes ECMA 418-2 tonality.

This class is used to compute the tonality according to the ECMA 418-2 standard (Hearing Model of Sottek), formerly known as ECMA 74, annex G.

Class instantiation takes the following parameters.

Parameters:
signal: Field, default: None

Signal in Pa on which to calculate the tonality.

Methods

TonalityECMA418_2.convert_fields_container_to_np_array(fc)

Convert a DPF fields container to a NumPy array.

TonalityECMA418_2.get_output()

Get the ECMA 418-2 tonality data, in a tuple containing data of various types.

TonalityECMA418_2.get_output_as_nparray()

Get the ECMA 418-2 tonality data, in a tuple of NumPy arrays.

TonalityECMA418_2.get_tonality()

Get the ECMA 418-2 tonality, in tuHMS.

TonalityECMA418_2.get_tonality_over_time()

Get the ECMA 418-2 tonality over time, in tuHMS.

TonalityECMA418_2.get_tonality_time_scale()

Get the ECMA 418-2 tonality time scale, in s.

TonalityECMA418_2.get_tone_frequency_over_time()

Get the ECMA 418-2 tone frequency over time, in Hz.

TonalityECMA418_2.get_tone_frequency_time_scale()

Get the ECMA 418-2 tone frequency time scale, in s.

TonalityECMA418_2.plot()

Plot the ECMA 418-2's tonality and tone frequency over time.

TonalityECMA418_2.process()

Compute the ECMA 418-2 tonality.

Attributes

TonalityECMA418_2.signal

Input signal in Pa.