XtractTransient#

class ansys.sound.core.xtract.XtractTransient(input_signal=None, input_parameters=None)#

Extracts the transient components of a signal using the Xtract algorithm.

Class instantiation takes the following parameters.

Parameters:
input_signalFieldsContainer | Field, default: None

One or more signals to extract transient components on as a DPF fields container or fields. When inputting a fields container, each signal (each field of the fields container) is processed individually.

input_parametersXtractTransientParameters, default: None

Structure that contains the parameters of the algorithm:

  • Lower threshold (float), which is between 0 and 100.

  • Upper threshold (float), which is between 0 and 100.

This structure is of the XtractTransientParameters type. For more information, see this class.

Methods

XtractTransient.convert_fields_container_to_np_array(fc)

Convert a DPF fields container to a NumPy array.

XtractTransient.get_output()

Get the output of the transient extraction.

XtractTransient.get_output_as_nparray()

Get the output of the transient extraction as NumPy arrays.

XtractTransient.plot()

Plot signals.

XtractTransient.process()

Process the transient extraction.

Attributes