AudioPad

AudioPad[audio,t]

adds t seconds of silence to the end of audio.

AudioPad[audio,{t1,t2}]

adds t1 seconds of silence to the beginning and t2 seconds to the end of audio.

AudioPad[audio,tspec,padding]

pads using the value or method specified by padding.

Details

  • The amount of padding can be a non-negative real number in seconds, a time quantity, or a samples quantity.
  • The following forms of padding can be specified:
  • 0zero (silence) padding
    vala constant value
    "Faded"a short faded padding followed by zero padding
    "Fixed"repetitions of the boundary value
    "Periodic"cyclic repetitions of the complete audio
    "Reflected"reflections of the audio at the boundary
    "Reversed"reversals of the complete audio

Examples

open allclose all

Basic Examples  (2)

Add two seconds of silence to the end of an audio object:

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

Add a second of silence to both ends:

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

Scope  (6)

Applications  (4)

See Also

AudioTrim  AudioChannelSeparate  Audio  ArrayPad  ImagePad  Padding  PaddingSize

Introduced in 2016
(11.0)
| Updated in 2017
(11.1)