RoughnessECMA418_2#
- class ansys.sound.core.psychoacoustics.RoughnessECMA418_2(signal=None, field_type='Free')#
Computes ECMA-418-2 roughness.
Computes the roughness, specific roughness, and roughness over time of a sound according to the ECMA-418-2 standard (4th edition, 2025).
See also
Examples
Compute the roughness of a signal, and display the specific roughness and roughness over time.
>>> from ansys.sound.core.psychoacoustics import RoughnessECMA418_2 >>> roughness = RoughnessECMA418_2(signal=my_signal, field_type="Free") >>> roughness.process() >>> roughness_value = roughness.get_roughness() >>> roughness.plot()
See also
- Calculate psychoacoustic indicators
Example demonstrating how to compute various psychoacoustic indicators.
Added in DPF Sound plugin version 2027.1.0.
Class instantiation takes the following parameters.
- Parameters:
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 asperHMS/Bark.
Get the time scale.
Plot the specific roughness and the roughness over time.
Compute the roughness.
Attributes
Sound field type.
Input signal in Pa.