AudioFrequencyShift
✖
AudioFrequencyShift

uses mix to control the ratio between the original and shifted audio.
Details and Options

- AudioFrequencyShift shifts every frequency f in the input signal to frequency
.
- The frequency freq can be a scalar or a frequency quantity, an Audio object, a pure function, or a TimeSeries.
- The mixing parameter mix can be any real number between 0 and 1. The default value is 1.
- With mix=0, only the original signal is returned; with mix=1, only the delayed signal is returned.
- AudioFrequencyShift accepts a Method option. Possible settings are:
-
"UpperSideband" the spectrum is shifted by freq "LowerSideband" the spectrum is reversed and shifted by freq "AmplitudeModulation" both effects are present at the same time - The absolute amount of shift should be less than half of the Nyquist frequency.

Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Shift the spectrum of an audio signal by 1000 Hz:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-2x8s6j

https://wolfram.com/xid/0g35jzqpg4fi39w2i-z75u3j

Plot the power spectrum of the original and shifted signals:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-e1v5c7

Mix the original signal with the shifted one:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-tc44up


https://wolfram.com/xid/0g35jzqpg4fi39w2i-lijqpn

Scope (6)Survey of the scope of standard use cases
Control the ratio between the original and the frequency-shifted signal:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-qkzu2y

https://wolfram.com/xid/0g35jzqpg4fi39w2i-42h5vs

The shift given as a number is assumed to be in hertz:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-lwebhg


https://wolfram.com/xid/0g35jzqpg4fi39w2i-opj9mb

Time-varying frequency shift using a function:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-or6dcb

Time-varying frequency shift using a TimeSeries:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-yyzyr9

Time-varying frequency shift using a control audio signal:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-3054cc

Process the audio track of a video:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-l7x9gq

Options (2)Common values & functionality for each option
Method (2)
AudioFrequencyShift can use three methods:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-lm31a

https://wolfram.com/xid/0g35jzqpg4fi39w2i-2dubj2

https://wolfram.com/xid/0g35jzqpg4fi39w2i-vd36pf

While "UpperSideband" and "LowerSideband" produce very similar results, "AmplitudeModulation" generates a different sound:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-rjt1f4

https://wolfram.com/xid/0g35jzqpg4fi39w2i-d45z4v


https://wolfram.com/xid/0g35jzqpg4fi39w2i-z7n3yb

Applications (2)Sample problems that can be solved with this function
Create a chorus effect using a small amount of shift while mixing in the original signal:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-fi53wb

Use frequency shifting to produce complex inharmonic sounds:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-gia43t

Use frequency shifting to "tune" drum-like sounds:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-m46gy6

Use frequency shifting to "mask" voices:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-wvec5l

Properties & Relations (1)Properties of the function, and connections to other functions
Shifting harmonically simple signals like sinusoids changes the perceived pitch:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-7m1oqw

Shifting complex signals alters the harmonic relationships between their components and can produce an inharmonic output:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-s4kwzj

Possible Issues (1)Common pitfalls and unexpected behavior
The absolute value of the shift parameter needs to be less than one-quarter of the sample rate:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-leychv

https://wolfram.com/xid/0g35jzqpg4fi39w2i-i8epue


Increase the sampling frequency of the input to overcome this limitation:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-7u2bdm

Neat Examples (2)Surprising or curious use cases
Simulate the behavior of an AM radio:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-7jm6cg
Shift the original signal to a higher frequency:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-4jv0rn

Reconstruct the original audio:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-7wzqc3

Time-varying frequency shift using a RandomWalkProcess:

https://wolfram.com/xid/0g35jzqpg4fi39w2i-8hb8tq


https://wolfram.com/xid/0g35jzqpg4fi39w2i-0ztuhp


https://wolfram.com/xid/0g35jzqpg4fi39w2i-qfxtrm

Wolfram Research (2016), AudioFrequencyShift, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioFrequencyShift.html (updated 2024).
Text
Wolfram Research (2016), AudioFrequencyShift, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioFrequencyShift.html (updated 2024).
Wolfram Research (2016), AudioFrequencyShift, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioFrequencyShift.html (updated 2024).
CMS
Wolfram Language. 2016. "AudioFrequencyShift." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/AudioFrequencyShift.html.
Wolfram Language. 2016. "AudioFrequencyShift." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/AudioFrequencyShift.html.
APA
Wolfram Language. (2016). AudioFrequencyShift. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioFrequencyShift.html
Wolfram Language. (2016). AudioFrequencyShift. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioFrequencyShift.html
BibTeX
@misc{reference.wolfram_2025_audiofrequencyshift, author="Wolfram Research", title="{AudioFrequencyShift}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/AudioFrequencyShift.html}", note=[Accessed: 05-June-2025
]}
BibLaTeX
@online{reference.wolfram_2025_audiofrequencyshift, organization={Wolfram Research}, title={AudioFrequencyShift}, year={2024}, url={https://reference.wolfram.com/language/ref/AudioFrequencyShift.html}, note=[Accessed: 05-June-2025
]}