AudioPitchShift

AudioPitchShift[audio,r]

applies pitch shifting to audio by the ratio r, shifting every frequency to .

Details and Options

  • AudioPitchShift shifts the pitch of the input audio signal without affecting the duration.
  • The frequency ratio r can be given as a pitch interval, including:
  • Quantity[oct,"octaves"]correspond to
    Quantity[sem,"semitones"]correspond to
  • AudioPitchShift takes a PartitionGranularity option that controls the partitioning of audio, used for the computation of the short-time Fourier transform.
  • By default, automatic partitioning is used to get a compromise between performance and quality.
  • A small window size will result in better processing of transients, while a larger window results in a higher-quality output.

Examples

open allclose all

Basic Examples  (2)

Shift the audio pitch by a factor of two:

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

Shift the audio pitch by a semitone:

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

Scope  (3)

Options  (3)

Applications  (1)

Properties & Relations  (2)

Possible Issues  (1)

See Also

AudioFrequencyShift  AudioTimeStretch  AudioResample  Audio

Introduced in 2016
(11.0)