Skip to main content

sound:compute STFT

Version: 0.0.0

Description

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

Inputs

InputNameExpected type(s)Description
Pin 0
Required
input_signalfieldThe input signal as a field on which to compute the STFT.
Pin 1
Required
fft_sizeint32Size (as an integer) of the FFT to compute the STFT. Use a power of 2 for better performance.
Pin 2window_typestringThe 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 3window_overlapdoubleThe 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 0output_stftfields_containerOutput (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
mutexboolfalseIf 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.