AudioPan

AudioPan[audio]

returns a center-panned stereo audio object from a mono audio.

AudioPan[audio,pan]

returns a stereo audio object after panning left and right channels using the specified pan.

Details

  • AudioPan works only with mono and stereo audio objects.
  • The panning parameter pan can be a scalar value between and 1, a Quantity, an Audio object, a TimeSeries, or a pure function.
  • AudioPan uses sinusoidal panning.
  • AudioPan returns an audio object of a real type.

Examples

open allclose all

Basic Examples  (2)

Transform a mono audio object to a stereo one:

Modify the leftright balance of a stereo object:

Scope  (2)

The panning can be controlled dynamically with a pure function:

With a TimeSeries:

With an Audio object:

AudioPan is listable:

Properties & Relations  (3)

AudioPan uses a sinusoidal panning algorithm to keep the sum of the powers of the output channels constant:

With a mono input, AudioPan duplicates the signal on the two output channels, and the pan parameter controls the leftright balance of the resulting audio object:

In the case of a stereo input, pan controls the relative levels of the two channels without any mixing:

On a stereo audio object, AudioPan[audio] or AudioPan[audio,0] does not modify the input.

Pan an audio object using AudioChannelMix:

Introduced in 2016
 (11.0)