Stft#

class ansys.sound.core.spectrogram_processing.Stft(signal=None, fft_size=2048, window_type='HANN', window_overlap=0.5)#

Computes the short-time Fourier transform (STFT) of a signal.

Methods

Stft.convert_fields_container_to_np_array(fc)

Convert a DPF fields container to a NumPy array.

Stft.get_output()

Get the STFT of the signal as a DPF fields container.

Stft.get_output_as_nparray()

Get the STFT of the signal as a NumPy array.

Stft.get_stft_magnitude_as_nparray()

Get the amplitude of the STFT as a NumPy array.

Stft.get_stft_phase_as_nparray()

Get the phase of the STFT as a NumPy array.

Stft.plot()

Plot signals.

Stft.process()

Compute the STFT.

Attributes

Stft.fft_size

FFT size.

Stft.signal

Signal.

Stft.window_overlap

Window overlap.

Stft.window_type

Window type.