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:

Wolfram Research (2019), ShortTimeFourierData, Wolfram Language function, https://reference.wolfram.com/language/ref/ShortTimeFourierData.html.

Text

Wolfram Research (2019), ShortTimeFourierData, Wolfram Language function, https://reference.wolfram.com/language/ref/ShortTimeFourierData.html.

CMS

Wolfram Language. 2019. "ShortTimeFourierData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ShortTimeFourierData.html.

APA

Wolfram Language. (2019). ShortTimeFourierData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ShortTimeFourierData.html

BibTeX

@misc{reference.wolfram_2023_shorttimefourierdata, author="Wolfram Research", title="{ShortTimeFourierData}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/ShortTimeFourierData.html}", note=[Accessed: 18-April-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_shorttimefourierdata, organization={Wolfram Research}, title={ShortTimeFourierData}, year={2019}, url={https://reference.wolfram.com/language/ref/ShortTimeFourierData.html}, note=[Accessed: 18-April-2024 ]}