AudioChannelMix

AudioChannelMix[audio]

mixes channels of audio by averaging and returns a center-panned stereo audio.

AudioChannelMix[audio,desttype]

mixes audio channels into the specified desttype.

Details

  • The following destination type desttype can be specified for an m channel audio:
  • "Mono"mono audio, using the average channel value
    {"Mono",{w1,,wm}}mono audio, using a weighted average
    "Stereo"stereo audio, using the average value and center panning
    {"Stereo",{w1,,wm}}stereo audio, using weighted average and center panning
    {"Stereo",{w1,,wm},{p1,,pm}}stereo audio, using weighted average and specified panning
    nn-channel audio, evenly distributing the m input channels
    {n,mat}n-channel audio, using an arbitrary m×n distribution matrix mat
  • In the distribution matrix mat, the element wij is the amount of input channel i that goes into the output channel j.
  • The given weights wi can be given as scalar multipliers or in decibels.
  • A scalar multiplier wi is equivalent to in decibels.
  • For "Stereo" mixing, sinusoidal panning is used.
  • The AudioType of the returned object is either "Real32" or "Real".

Examples

open allclose all

Basic Examples  (1)

Convert a mono audio to stereo:

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

Downmix a stereo audio to mono:

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

Scope  (4)

Applications  (2)

Properties & Relations  (2)

See Also

AudioChannels  AudioChannelCombine  AudioOverlay  AudioJoin

Introduced in 2016
(11.0)