    

 ## On this page

  

 

 # sound:compute STFT

 Last update: 31.07.2026 

**Version: 0.0.0**

## Description

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

## Inputs

InputNameExpected type(s)Description**Pin 0**   
Requiredinput\_signal[`field`](../../core-concepts/dpf-types.md#field)The input signal as a field on which to compute the STFT.  
**Pin 1**   
Requiredfft\_size[`int32`](../../core-concepts/dpf-types.md#standard-types)Size (as an integer) of the FFT to compute the STFT. Use a power of 2 for better performance.  
**Pin 2**window\_type[`string`](../../core-concepts/dpf-types.md#standard-types)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`](../../core-concepts/dpf-types.md#standard-types)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

OutputNameExpected type(s)Description**Pin 0**output\_stft[`fields_container`](../../core-concepts/dpf-types.md#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

NameExpected type(s)Default valueDescription**mutex**[`bool`](../../core-concepts/dpf-types.md#standard-types)falseIf 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.