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:
Methods
Get the sharpness value.
Get the sharpness as a NumPy array.
Get the sharpness value.
Plot the output.
Compute the sharpness.
Attributes
Sound field type.
Input signal in Pa.