AudioBufferChannelRouter Op

AudioBufferChannelRouter

Route audio from one input channel to any output channel


<p>Routes audio input channels to different output channels by modifying the audiobuffer accordingly.</p> <p>Uses <a href="https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel">copyToChannel</a> to copy/move data from one channel to another.</p> <p>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. </p> <p>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.</p>


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:

<i>integer</i>

)

<p>zero-based input chanel to route</p>

Channel Out (Number:

<i>integer</i>

)

<p>zero-based target output channel</p>

Mode

Clear Others (Number:

<i>boolean</i>

)

<p>fill all other channels with empty data/silence</p>

Channel Offset (Number:

<i>boolean</i>

)

<p>offset input signal by x channels and keep all input channels</p>

OUTPUT PORTS


Audio Buffer Out (Object)
Output Channels (Number)

<p>maximum number of output channels supported by the soundcard</p>


Patches using AudioBufferChannelRouter

  • Examples
  • Public
  • My Patches

Changelog


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