PAN
Sets or returns channel stereo pan.
Syntax
`
Pan channel, position
position = Pan(channel)
`
Description
PAN moves one sfxlib channel left or right in the stereo field. It is useful for simple positional effects, such as making a sound effect come from the left side of the screen while music remains centered.
The first argument is the channel to adjust. The second argument is the pan position. A centered value keeps the channel balanced; values to either side move that channel toward one speaker.
Calling PAN as a function returns the current pan position for the channel.
Example
`
pan 0, -0.5
pan 1, 0.5
print "channel 0 pan="; pan(0)
`
Notes

- Use BALANCE when the whole mix should move left or right.

See also

- `Sound Library Reference`
- `Generated Sound Commands`