Multichannel Panning in ChucK
ChucK has two chugins for panning, reflecting two different common strategies. PanN provides 4, 8, and 16 channel panners for equal power 2D panning between speaker arrays. AmbPan provides a 3rd order ambisonics encoder, allowing panning in 3D space. However, you need to route the audio to a proper ambisonics decoder, such as in the CCRMA Listening Room.
Linux ChuGins + ChucK examples