ExtensionUtility class method intended for uncomplicated conversion of channel count, distributing its input to a requested number of output channels with controls for spread and position. If you need more fine-grained control over the distribution, use the underlying Splay or SplayAz.
With two output channels, it behaves like Splay, with pan passed as the stereo center and spread controlling the width. With more than two output channels, it behaves like SplayAz, with pan multiplied by numChans and passed as the center position around the channel ring. The stereo and multichannel paths use the level compensation defaults of Splay and SplayAz. With one output channel, the input signals are summed and pan and spread have no effect.
Distribute the input signals at audio rate with spread and position controls.
| snd |
A signal or array of signals to distribute. |
| pan |
Position control passed to Splay for stereo output. For more than two output channels, pan is multiplied by numChans before being passed to SplayAz. |
| spread |
Controls how far apart the input signals are distributed. A value of 0 places the signals together at the center, while 1 uses the full spread. |
| numChans |
The number of output channels. Defaults to 1. |
A signal or array of signals with numChans channels.
Rotate and spread three signals across stereo:
Distribute signals around a four-channel ring: