RpmOrderRepresentation#
- class ansys.sound.core.order_analysis.RpmOrderRepresentation(signal=None, rpm_profile=None, max_order=160, order_resolution=2.0)#
Compute the RPM order representation of a signal.
This class computes an RPM-order representation of a signal, given an associated RPM profile. An RPM-order representation describes how the signal level varies depending on order value and RPM. The output takes the form of a matrix, where each row corresponds to a specific order value and each column corresponds to a specific RPM or time value. This class is used for extracting order levels over RPM or time, with the class
OrderLevels.The method to obtain the RPM-order representation consists of a short-time Fourier transform (STFT) applied to a resampled constant-angle version of the input signal, using the provided RPM profile.
See also
Examples
Compute the RPM order representation of a signal with its RPM profile.
>>> from ansys.sound.core.order_analysis import RpmOrderRepresentation >>> rpm_order_representation = RpmOrderRepresentation( ... signal=my_signal, ... rpm_profile=my_rpm_profile, ... max_order=160, ... order_resolution=2.0 ... ) >>> rpm_order_representation.process() >>> output = rpm_order_representation.get_output()
Added in DPF Sound plugin version 2027.1.0.
Class instantiation takes the following parameters.
- Parameters:
- signal
Field, default:None Input signal.
- rpm_profile
Field, default:None RPM profile associated with the input signal.
- max_order
int, default: 160 Maximum order to consider. This is the maximum order value included in the output RPM-order representation. Signal content beyond this order value is ignored.
- order_resolution
float, default: 2.0 Order resolution, in percent of order. This corresponds to the order step between each row of the output RPM-order representation. Note that reducing this value increases the RPM step between each RPM value in the RPM-order representation.
- signal
Methods
Get the order values associated with the RPM-order representation.
Get the RPM order representation.
Get the RPM order representation as NumPy arrays.
Get the RPM-order representation.
Get the RPM scale associated with the RPM-order representation.
Get the time scale associated with the RPM-order representation.
Plot the output.
Compute the RPM order representation.
Attributes
Maximum order to consider in the RPM-order representation.
Order resolution, in percent of order.
RPM profile associated with
signal.Input signal.