M4L Panning Issues

Hi was just wondering if anyone had ideas on how to improve my M4L panning patch, it needs to include the COS/SIN function to allow a constant dB power when switching between L/R.

Through initial testing the panning seems to follow the COS/SIN pattern by becoming louder on Hard L and R.

I’ve introduced a gain pot which is linked to the panning option to maintain a constant dB throughout. The issue that i seem to be having is there’s not a noticeable difference when listening back to this.

I’ve applied a level meter and dB measurement GUI to monitor this, i’m unsure if i need to apply a !-~1 to invert the signal.