Sinewave arbitrary panner built from scratch
A generalisation of the algorithm from the "Sinewave Panner Built From Scratch" DrawingBoard to enable an arbitrary
phase separation between the left and right channels.
The auto-panner is created by multiplying a mono audio signal by separate "left" and "right" amplitude modulation signals
which are then "zipped up" to form a stereo output. The Ramp Control Generator is used to generate a ramp signal which
rises from 0 to 2*pi over a user-selectable duration. This ramp signal represents the (wrapped) phase of an oscillator. The
Control Sine block calculates the trigonometric sine of the ramp signal which is used (via the One plus Control) block to
modulate the "left" channel. The Constant Control Generator is used to generate an offset phase angle (in radians) before
taking
the trigonometric sine via the second "Control Sine" block and modulating the "right" channel (via the second "One plus
Control" block). This implementation allows for an arbitrary user-selectable phase difference between the left and right
channels. This is only one example of how to distibute the signal between the channels. Other variations on the theme
are, of course, entirely possible.
Likewise, the structure can easily be extended to generate multi-channel panners instead of merely stereo (i.e. 2 channels).