AudioSpectralTransformation
AudioSpectralTransformation[f,audio]
returns a modified version of audio by applying a time-frequency transformation f to its short-time Fourier transform.
AudioSpectralTransformation[f,video]
transforms the first audio track in video.
Details and Options
- Applying an arbitrary time-frequency transformation to the short-time Fourier transform of audio signals can create interesting audio modifications and effects for creative use.
- AudioSpectralTransformation computes the short-time Fourier transform of audio, maps every value at position f[{time,freq}] to {time,freq}, and computes the inverse using the overlap-add method.
- The following options can be given:
-
DataRange Automatic ranges to assume for time and frequency Padding 0 padding scheme to use PartitionGranularity Automatic audio partitioning specification Resampling Automatic resampling method - By default, DataRange->{{0,dur},{0,sr/2}} is used, where dur and sr are duration and sample rate of audio.
Examples
open allclose allScope (4)
Options (2)
DataRange (1)
PartitionGranularity (1)
Use the PartitionGranularity option to change the quality of the result:
Applications (5)
Properties & Relations (4)
Performing an identity operation does not return the input sample values:
Even in the case of an identity, a short-time Fourier transform followed by an overlap add operation is performed. The result only has minor discrepancies with the input:
Create a crude pitch-shifting effect:
Compare to AudioPitchShift:
Create a crude time-stretching effect:
Compare to AudioTimeStretch:
Create a crude frequency-shifting effect:
Compare to AudioFrequencyShift:
Text
Wolfram Research (2017), AudioSpectralTransformation, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioSpectralTransformation.html (updated 2024).
CMS
Wolfram Language. 2017. "AudioSpectralTransformation." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/AudioSpectralTransformation.html.
APA
Wolfram Language. (2017). AudioSpectralTransformation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioSpectralTransformation.html