PanAz.ar(numChans, in, pos: 0.0, level: 1.0, width: 2.0, orientation: 0.5)
PanAz.kr(numChans, in, pos: 0.0, level: 1.0, width: 2.0, orientation: 0.5)
Arguments:
numChans
Number of output channels. Must be a nonzero, positive integer. This is fixed when the SynthDef is compiled so cannot be assigned to a SynthDef argument.
in
The input signal.
pos
pan position (kr or ar). Channels are evenly spaced over a cyclic period of 2.0 in pos with 0.0 equal to channel zero and 2.0/numChans equal to channel 1, 4.0/numChans equal to channel 2, etc.
Thus all channels will be cyclically panned through if a bipolar sawtooth wave from -1 to +1 is used to modulate the pos.
level
A control rate level input.
width
The width of the panning envelope. Nominally this is 2.0 which pans between pairs of adjacent speakers. Values greater than 2 will spread the pan over greater numbers of speakers. Values less than 1 will leave silent gaps between speakers. The absolute of this value is taken as negative values have no meaning (a width of -1 is the same as a width of 1).
orientation
Should be 0 if the front is a vertex of the spanning polygon. The first speaker will be directly in front. Should be 0.5 if the front bisects a side of the spanning polygon. Then the first speaker will be the one left of center.