Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

AudioFade

AudioFade[audio]
returns audio in which the beginning and end of audio are faded.

AudioFade[audio,t]
fades the first and last t seconds of audio.

AudioFade[audio,{t1,t2}]
fades t1 seconds at the beginning and t2 seconds at the end.

Details and OptionsDetails 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)

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Fade in a sinusoidal audio signal:

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

Plot the waveforms of the original and resulting signals:

In[4]:=
Click for copyable input
Out[4]=

Specify different fading times for the beginning and end of the signal using exponential fading:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2016
(11.0)