Sharpness#

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

Computes the sharpness of a signal according to Zwicker & Fastl’s model.

Note

The calculation of this indicator is based on the loudness model for stationary sounds defined in the standard ISO 532-1. It is the loudness model of the class LoudnessISO532_1_Stationary.

Examples

Compute the sharpness of a signal according to Zwicker & Fastl’s model.

>>> from ansys.sound.core.psychoacoustics import Sharpness
>>> sharpness = Sharpness(signal=my_signal)
>>> sharpness.process()
>>> sharpness_value = sharpness.get_sharpness()

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 sharpness.

field_typestr, default: “Free”

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

Methods

Sharpness.get_output()

Get the sharpness value.

Sharpness.get_output_as_nparray()

Get the sharpness as a NumPy array.

Sharpness.get_sharpness()

Get the sharpness value.

Sharpness.plot()

Plot the output.

Sharpness.process()

Compute the sharpness.

Attributes

Sharpness.field_type

Sound field type.

Sharpness.signal

Input signal in Pa.