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 allclose all

Basic Examples  (1)

Short-time Fourier transform of an audio signal:

Show the spectrogram:

Inverse short-time Fourier transform:

Scope  (6)

Data  (2)

Short-time Fourier transform of an audio recording:

Short-time Fourier transform of an array:

Properties  (4)

Inspect the properties of ShortTimeFourierData:

Inspect the data:

Recover the parameters used in the computation:

Modify the "Data" property:

The transformation can be approximately inverted using InverseShortTimeFourier:

Modify the "PartitionOffset" property:

The transformation can be approximately inverted using InverseShortTimeFourier:

Modify the "DataType" and "SampleRate" properties:

The transformation can be approximately inverted using InverseShortTimeFourier:

Introduced in 2019
 (12.0)