AudioChannelAssignment

AudioChannelAssignment

is an option for Audio and related functions that specifies a mapping from audio channels to available speakers of the output audio device.

Details

  • Channel assignments can be specified when constructing an Audio or AudioStream object.
  • Typical settings include:
  • Automaticautomatic channel assignment
    {out1,out2,}play input channel i on output outi
    "Mean"mean of all input channels on all outputs
    "Partition"partition the input channels on outputs
    "Periodic"periodic assignment of input channels to outputs
    "Take"playing audio channel i on the i^(th) output
  • Explicit channels outi can be any of the following:
  • Nonenot played on any output
    nplay on the n^(th) output
    {n1,n2,}play on several outputs n1, n2,
  • For a 5-channel input and 2 outputs, the channel assignments are equivalent to:
  • "Mean"{{1,2},{1,2},{1,2},{1,2},{1,2}}
    "Partition"{1,1,1,2,2}
    "Periodic"{1,2,1,2,1}
    "Take"{1,2,None,None,None}

Examples

open allclose all

Basic Examples  (2)

By default, a mono signal is played on both output channels:

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

Play it only on the right channel:

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

Invert the channels of a stereo recording:

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

Scope  (1)

See Also

Audio  AudioPlay  AudioPan  AudioChannelMix  AudioChannels  AudioOutputDevice  $AudioOutputDevices

Introduced in 2017
(11.2)