PAN - simple mixing instrument that follows a pan curve
PAN(outskip, inskip, indur, ampmult [, inchan [, const_power] ])
Function table 1 gives amplitude curve.
Function table 2 gives panning curve.
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, unless you set p5 to zero.
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.
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.
setline, setexp, makegen, STEREO
John Gibson <johgibso at indiana edu>