Roughness#
- class ansys.sound.core.psychoacoustics.Roughness(signal=None)#
Computes the roughness and the roughness over time of a sound.
Reference: Daniel and Weber, “Psychoacoustical roughness: implementation of an optimized model.” Acta Acustica united with Acustica, 83, pp. 113-123 (1997).
See also
Examples
Compute the roughness of a signal, and display the specific roughness and roughness over time.
>>> from ansys.sound.core.psychoacoustics import Roughness >>> roughness = Roughness(signal=my_signal) >>> roughness.process() >>> roughness_value = roughness.get_roughness() >>> roughness.plot()
See also
- Calculate psychoacoustic indicators
Example demonstrating how to compute various psychoacoustic indicators.
Class instantiation takes the following parameters.
- Parameters:
- signal
Field, default:None Signal in Pa on which to compute roughness.
- signal
Methods
Get Bark band frequencies.
Get Bark band indexes.
Get roughness data.
Get roughness data in a tuple of NumPy arrays.
Get the overall roughness in asper.
Get the roughness over time in asper.
Get the specific roughness in asper/Bark.
Get the time scale of the roughness over time, in s.
Plot the specific roughness and the roughness over time.
Compute the roughness.
Attributes
Input signal in Pa.