XtractTransient#
- class ansys.sound.core.xtract.XtractTransient(input_signal=None, input_parameters=None)#
Extracts the transient components of a signal using the Xtract algorithm.
See also
Examples
Extract transient components from a signal, and display the transient and non-transient components.
>>> from ansys.sound.core.xtract import XtractTransient >>> xtract_transient = XtractTransient( ... input_signal=my_signal, ... input_parameters=my_parameters ... ) >>> xtract_transient.process() >>> transient_signals, non_transient_signals = xtract_transient.get_output() >>> xtract_transient.plot()
See also
- Extract tonal, transient, and noise components (Xtract)
Example demonstrating how to use Xtract to extract the various components of a signal.
Class instantiation takes the following parameters.
- Parameters:
- input_signal
Field, default:None Input signal from which to extract transient components, as a DPF field.
- input_parameters
XtractTransientParameters, 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
XtractTransientParameterstype. For more information, see this class.
- input_signal
Methods
Get the output of the transient extraction.
Get the output of the transient extraction as NumPy arrays.
Plot signals.
Process the transient extraction.
Attributes
Input parameters.
Input signal from which to extract transient components, as a DPF field.
Output non-transient signal as a DPF field.
Output transient signal as a DPF field.