beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

AudioBufferChannelRouter Op

AudioBufferChannelRouter

Route audio from one input channel to any output channel


Routes audio input channels to different output channels by modifying the audiobuffer accordingly.

Uses copyToChannel to copy/move data from one channel to another.

Output channel number can be an offset. This will, for example, move both stereo channels to output channel 3 and 4 if set to 2.

Channel numbers are zero-based, ususal order is L, R, SL, SR, C, LFE, ... check your soundcard settings to see how hardware-outputs are mapped to channels.


Edit Documentation

Full Name
  • Ops.WebAudio.AudioBufferChannelRouter
Visibility
  • Core Op - Official cables op
AuthorTest Patches


 

Example Patch Example for AudioBufferChannelRouter

Example for AudioBufferChannelRouter

Open In Editor

INPUT PORTS


Audio Buffer (Object:audioBuffer)
Channel In (Number:integer )

zero-based input chanel to route

Channel Out (Number:integer )

zero-based target output channel

Mode

Clear Others (Number:boolean )

fill all other channels with empty data/silence

Channel Offset (Number:boolean )

offset input signal by x channels and keep all input channels

OUTPUT PORTS


Audio Buffer Out (Object)
Output Channels (Number)

maximum number of output channels supported by the soundcard


Usages of AudioBufferChannelRouter

  • Examples
  • Public
  • My Patches
  • Ops

Changelog


created opuser avatarstephan - 2023-12-15