pan2
Signal Modifiers:Panning and Spatialization
pan2
pan2
Distribute an audio signal across two channels.
Description
Distribute an audio signal across two channels with a choice of methods.
Syntax
a1, a2 pan2 asig, xp [, imode]
Initialization
imode (optional) -- mode of the stereo
positioning algorithm. 0 signifies equal power (harmonic)
panning, 1 means the square root method, and 2 means simple linear. The default value is 0.
Performance
pan2 takes an input
signal asig and distributes it across two
outputs (essentially stereo speakers) according to the
control xp which can be k- or a-rate. A
zero value for xp indicates hard left, and
a 1 is hard right.
Examples
instr 1
kline line 0, p3, 1 ; straight line
ain oscili 10000,440, 1 ; audio signal..
a1,a2 pan2 ain, kline ; sent across image
outs a1, a2
endin
Credits
Author: &namejohn;
University of Bath, Codemist Ltd.
Bath, UK
September 2007
New in version 5.07