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.


Full Name
  • Ops.WebAudio.AudioBufferChannelRouter
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest 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


Patches using AudioBufferChannelRouter

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarstephan - 2023-12-15 16:16