Skip to main content

DPF Framework 2026 R1

sound:compute STFT

Last update: 31.07.2026

Version: 0.0.0

Description

Compute Short-Time Fourier Transform (STFT) from a temporal signal.

Inputs

Input Name Expected type(s) Description
Pin 0
Required
input_signal field The input signal as a field on which to compute the STFT.
Pin 1
Required
fft_size int32 Size (as an integer) of the FFT to compute the STFT. Use a power of 2 for better performance.
Pin 2 window_type string The window used for the FFT computation, as a string.
Allowed input strings are:

* BLACKMAN
* FLATTOP
* GAUSS
* HAMMING
* HANN
* RECTANGULAR
* TRIANGULAR

If no parameter is specified, the default value is 'HANN'.
Pin 3 window_overlap double The overlap value between two successive FFT computations (value between 0 and 1). 0 means no overlap, 0.5 means 50 % overlap. If no value is specified, default value is 0.5.

Outputs

Output Name Expected type(s) Description
Pin 0 output_stft fields_container Output (complex) STFT, as a fields container. The fields container is indexed by labels "time" and "complex", and each indexed field corresponds to the real or imaginary part of an STFT slice (spectrum) at the specified time index.

Configurations

Name Expected type(s) Default value Description
mutex bool false If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

Scripting

Category: sound

Plugin: sound

Scripting name: None

Full name: None

Internal name: compute_stft

License: avrxp_snd_level1

Changelog

  • Version 0.0.0: Initial release.

Connect with Ansys