Multichannel equal power panner.
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)
Number of output channels.
The input signal.
pan position (
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 is used to modulate the pos.
A control rate level input.
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.
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.
Five channel circular panning with first channel on the left
Despite a certain similarity, Pan2 and PanAz with 2 channels behave differently.
The same in one plot window:
In other words, while
Pan2 needs a position change of
2 from channel
In one plot window: