XtractTonal#
- class ansys.sound.core.xtract.XtractTonal(input_signal=None, input_parameters=None)#
Performs signal tonal analysis using the Xtract algorithm.
Class instantiation takes the following parameters.
- Parameters:
- input_signal
FieldsContainer
|Field
, default:None
One or more signals to extract tonal components from as a DPF field or fields container. When inputting a fields container, each signal (each field of the fields container) is processed individually.
- input_parameters
XtractTonalParameters
, default:None
Structure that contains the parameters of the algorithm:
NFFT (int) is the number of points used for the FFT computation.
Regularity setting (float) between 0 and 1.
Maximum slope (float) in dB/Hz.
Minimum duration (float) in seconds.
Intertonal gap (float) in Hz.
Local emergence (float) in dB.
This structure is of the
XtractTonalParameters
type. For more information, see this class.
- input_signal
Methods
Convert a DPF fields container to a NumPy array.
Get the output of the tonal analysis.
Get the output of the tonal analysis as NumPy arrays.
Plot the output of the tonal analysis.
Process the tonal analysis.
Attributes
Input parameters.
Input signal.
Output non-tonal signals.
Output tonal signals.