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.

AudioPan[video,]

pans the first audio track in video.

Details

  • AudioPan works only with mono and stereo audio objects.
  • The panning parameter pan can be a scalar value between and , 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  (3)

The panning can be controlled dynamically with a pure function:

With a TimeSeries:

With an Audio object:

Process the audio track of a video:

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:

Wolfram Research (2016), AudioPan, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioPan.html (updated 2024).

Text

Wolfram Research (2016), AudioPan, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioPan.html (updated 2024).

CMS

Wolfram Language. 2016. "AudioPan." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/AudioPan.html.

APA

Wolfram Language. (2016). AudioPan. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioPan.html

BibTeX

@misc{reference.wolfram_2024_audiopan, author="Wolfram Research", title="{AudioPan}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/AudioPan.html}", note=[Accessed: 22-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_audiopan, organization={Wolfram Research}, title={AudioPan}, year={2024}, url={https://reference.wolfram.com/language/ref/AudioPan.html}, note=[Accessed: 22-October-2024 ]}