Stereo PAN = Not Working

Hello folks,

When I apply the PAN processor to the STEREO WAV Source and pan the sound 100% to the left, I notice that only the left channel tilts to the left, while the right channel sound disappears. However, I desire to have both the right and left channels completely panned to the left.

How can I do this ? I couldn’t find any parameters for this

There are different ways to pan a stereo signal. One value is not enough information, when you want to control the position and the stereo width.

One way of doing it is to use a mono to stereo panner for each input channel. This is how many DAWs do it, e.g. ProTools or Cubase.

I like an M/S approach, where you move the centre and a second knob controls the width. Some users like that, others struggle with that mental model.
I think you can achieve that with converting to M/S, use a Panner on the M signal and a Gain on the Side signal to control the width.

If you want to stick to one knob and just move the opposite channel towards the side you want to pan to:

if (pan > 0)
{
    buffer.addFrom (1, 0, buffer.getReadPointer (0), buffer.getNumSamples(), pan);
    buffer.applyGain (0, 0, buffer.getNumSamples, 1.0 - pan);
}
else if (pan < 0)
{
    buffer.addFrom (0, 0, buffer.getReadPointer (1), buffer.getNumSamples(), -pan);
    buffer.applyGain (1, 0, buffer.getNumSamples, 1.0 + pan);
}

(untested code for inspiration)
And have a play with the pan laws, it can be applied here too.

Oh thank you mate, it worked. Thank you so much