transforms audio by applying the function f to its short-time Fourier transform.


applies the function f to the list of short-time Fourier transforms of all audioi.

Details and Options

  • AudioSpectralMap can be used to arbitrarily modify the signal both in the time domain and the frequency domain. Spectral filters can be used to diminish, highlight or modify specific frequencies at specific times, e.g. removing noise.
  • AudioSpectralMap applies the function f to the short-time Fourier transform and computes the inverse using the overlap-add method.
  • Function f takes values of short-time Fourier transform as the first argument. Optionally, frequency and time can be given to f as the second and third arguments:
  • #Value or #1value of the short-time Fourier transform
    #Frequency or #2frequency in Hz
    #Time or #3time in seconds
  • For multichannel audio objects, the transformation is performed separately on each channel.
  • When multiple audio signals are present, #Value is a list of values. Use #Valuei for audioi.
  • AudioSpectralMap accepts a PartitionGranularity option that can specify the duration of each partition and the offset, as well as the smoothing window.


open all close all

Basic Examples  (1)

Spectral filtering of an audio signal:

Click for copyable input

Scope  (2)

Options  (1)

Applications  (8)

Properties & Relations  (1)

Introduced in 2017