Hi. I'm trying to make a utility for stereo Combined Panning. I managed to do that but I have some problems with the math. Unlike regular panning, when sending the signal to the left the right channel doesn't vanish, It is sent to the left channel, and as a result, the channel would clip unless I process the sum of the channels in some way (halving its amplitude, for example).
But I can't find the right math. for example, when not processed (left is sent to the left end and the right to the right) the gain is dropped compered to the source.
I'm looking for a way to sum signals with different amplitudes without the gain loss.
here's what I have so far: