SharpnessOverTime#
- class ansys.sound.core.psychoacoustics.SharpnessOverTime(signal=None, field_type='Free')#
Computes the sharpness of a signal according to Zwicker & Fastl’s model, over time.
Note
The calculation of this indicator is based on the loudness model for time-varying sounds defined in the standard ISO 532-1. It is the loudness model of the class
LoudnessISO532_1_TimeVarying.Examples
Compute and display the sharpness of a signal according to Zwicker & Fastl’s model, over time.
>>> from ansys.sound.core.psychoacoustics import SharpnessOverTime >>> sharpness = SharpnessOverTime(signal=my_signal) >>> sharpness.process() >>> max_sharpness_value = sharpness.get_max_sharpness() >>> sharpness.plot()
See also
- Calculate psychoacoustic indicators
Example demonstrating how to compute various psychoacoustic indicators.
Class instantiation takes the following parameters.
- Parameters:
Methods
Get the maximum value of the sharpness over time.
Get the sharpness over time data in a tuple.
Get the sharpness over time data in a tuple of NumPy arrays.
Get the sharpness over time.
Get the time scale of the sharpness over time.
Plot the sharpness over time.
Compute the sharpness over time.
Attributes
Sound field type.
Input signal in Pa.