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)

AudioPartition

AudioPartition[audio,dur]
partitions an audio object into non-overlapping segments of duration dur.

AudioPartition[audio,dur,offset]
generates segments with specified offset.

Details and OptionsDetails and Options

  • AudioPartition returns a list of Audio objects.
  • AudioPartition[audio,dur,] generates as many audio partitions of duration t as possible, padding incomplete segments at the end.
  • The specifications dur and offset can be any of the following:
  • durtime given in seconds
    Quantity[dur,"unit"]time given in "unit" compatible with seconds
    Quantity[dur,"Samples"]time given as number of samples
  • AudioPartition[audio,{dur}, ] can create up to duration dur segments.
  • AudioPartition accepts a Padding option with the following settings:
  • Noneno padding
    0silence padding (default)
    "Periodic"cyclic repetitions of the complete image
    "Reflected"reflections of the image in the boundary
    "Reversed"reversals of the complete image

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Partition audio into non-overlapping, 1-second blocks:

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

Partition audio into overlapping blocks:

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