NAME

PAN - simple mixing instrument that follows a pan curve


SYNOPSIS

PAN(outskip, inskip, indur, ampmult [, inchan ])

Function table 1 gives amplitude curve.

Function table 2 gives panning curve.


DESCRIPTION

PAN lets you pan the input sound continuously, according to the curve given in function table 2. This curve should give time, pan pairs (similar to setline). The pan value is expressed as the percentage of signal to place in the left channel (as in the STEREO instrument), from 0 (0%) to 1 (100%). Use gen24 to make the function table, since it ensures the range of numbers is [0,1].

PAN uses ``constant-power'' panning to prevent a sense of lost power when the sound source moves toward the center.

PAN uses the curve provided in function table 1 to scale the amplitudes of the input source. Use setline, setexp, or makegen to create function table 1. If this table has not been created, no amplitude scaling (other than that given by ampmult) will occur.

The output of PAN must be stereo.


PFIELDS

p0 (outskip) output start time
p1 (inskip) input start time
p2 (indur) input duration
p3 (ampmult) amplitude multiplier
p4 (inchan) input channel [optional, default is 0]


EXAMPLES

   setline(0,0, 1,0, 4,1, 5,0)
   makegen(2, 24, 1000, 0,1, 1,0, 3,.5)
   PAN(outskip=0, inskip=0, dur=3, amp=1, inchan=0)

This will pan input channel 0 from left to right over the first second. Then the sound will travel back to the center during the next 2 seconds.


SEE ALSO

setline, setexp, makegen, STEREO


AUTHOR

John Gibson <johgibso@indiana.edu>