ShortTimeFourierData

ShortTimeFourierData[assoc]

represents the result and properties of a short-time Fourier transform (STFT) of a signal.

Details

  • Use ShortTimeFourier to create a ShortTimeFourierData object from a list or an audio signal.
  • Use InverseShortTimeFourier to reconstruct the original signal from the STFT data.
  • For a short-time Fourier data object stft, the following properties can be obtained using stft["prop"]:
  • "Data"short-time Fourier transform of original signal
    "DataType"type of the original signal
    "FourierParameters"Fourier parameters used in STFT
    "PartitionOffset"partition offset used in STFT
    "PartitionPadding"partition padding used in STFT
    "PartitionSize"partition size used in STFT
    "SampleRate"sample rate of the original signal
    "SmoothingWindow"smoothing window used in STFT
  • All properties of stft can be modified except for "PartitionSize".

Examples

open all close all

Basic Examples  (1)

Short-time Fourier transform of an audio signal:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Show the spectrogram:

In[3]:=
Click for copyable input
Out[3]=

Inverse short-time Fourier transform:

In[4]:=
Click for copyable input
Out[4]=

Scope  (6)

Introduced in 2019
(12.0)