AudioFade
Details and Options
- AudioFade fades in the signal by gradually increasing the volume of the signal from 0 to the full amplitude of the signal at the beginning, and similarly fades out the end of the signal.
- Fading a signal can be used to remove clicks when the audio is played back by avoiding potential discontinuities.
- AudioFade[audio] is equivalent to AudioFade[audio,.001].
- The shape of the ramp can be specified using a Method option. Possible settings are:
-

"Cosine" cosinusoidal fade 
"Exp" exponential fade 
"Linear" linear fade 
"Log" logarithmic fade 
"Rounded" rounded fade 
"SCurve" sinusoidal fade (default)
Examples
open all close allBasic Examples (2)
Fade in a sinusoidal audio signal:
a = \!\(\*AudioBox[""]\);
AudioFade[a, 1]Plot the waveforms of the original and resulting signals:
AudioPlot[#, FrameTicks -> None]& /@ {a, %}Specify different fading times for the beginning and end of the signal using exponential fading:
AudioFade[\!\(\*AudioBox[""]\), {1, .5}, Method -> "Exp"]AudioPlot[%]Scope (3)
The fade time can be specified as a time quantity:
audio = AudioGenerator["White", 10];AudioFade[audio, Quantity[4, "Seconds"]]//AudioPlotSpecify the fade time for beginning and end independently:
AudioFade[audio, {Quantity[2, "Seconds"], Quantity[8, "Seconds"]}]//AudioPlotSpecify the number of samples to be faded:
AudioFade[AudioGenerator[{"Sine", 10}, SampleRate -> 200], Quantity[100, "Samples"]]//AudioPlotProcess the audio track of a video:
AudioFade[\!\(\*VideoBox[""]\)]Options (2)
Applications (2)
AudioFade is useful to avoid clicks due to sudden phase jumps when joining multiple audio objects:
a1 = AudioGenerator[{"Sin", 364.2}];
a2 = AudioGenerator[{"Sin", 364.3}];Without fading, there is a sudden jump at the joining point:
AudioPlot[AudioJoin[{a1, a2}], PlotRange -> {0.99, 1.01}, Epilog -> {RGBColor[1, 0, 0, .2], Rectangle[{0.999, -1}, {1.001, 1}]}]AudioPlot[AudioJoin[AudioFade /@ {a1, a2}], PlotRange -> {0.99, 1.01}, Epilog -> {RGBColor[1, 0, 0, .2], Rectangle[{0.999, -1}, {1.001, 1}]}]Use AudioFade to create a sound with a slow attack time:
audio = AudioFade[AudioGenerator["Sin", 5, SampleRate -> 8000], {4, .01}, Method -> "Exp"]Related Guides
Text
Wolfram Research (2016), AudioFade, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioFade.html (updated 2024).
CMS
Wolfram Language. 2016. "AudioFade." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/AudioFade.html.
APA
Wolfram Language. (2016). AudioFade. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioFade.html
BibTeX
@misc{reference.wolfram_2026_audiofade, author="Wolfram Research", title="{AudioFade}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/AudioFade.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_audiofade, organization={Wolfram Research}, title={AudioFade}, year={2024}, url={https://reference.wolfram.com/language/ref/AudioFade.html}, note=[Accessed: 12-June-2026]}