I was looking at the code in this post and adapted it to what I need. Which is mixing the dry signal and a completely wet reverb and effects chain. But the final post at the end mentions equal power crossfading to avoid a volume drop in the middle of the dial:
After some reading online I think I basically need to do this (I am assuming the signals are de-correlated). I suck at math and just want to know if I am on the right track I sounds like it is working to my ears.
Am I on the right track? Also, if the signal was correlated would I use a more linear sweep with 0.5 in the middle? What would be an example of a more correlated signal? A chorus? Sorry for all the questions I just want to understand this better so I don’t need to ask about it in the future.
sqrt(0.5) gives you the right -3dB midpoint but, from what I recall trying that, you get nasty steps at the extremities in the signal that is going to towards silence when close to 0 or 1
Thanks for the response! That panning math using the sin and cos looks simple enough I may try to implement that. I am not really noticing the issues with the edges of the Square Root pan though so maybe my use case is fine to just use that. I may just code up both and see which one I intuitively like better. I assume the SQRT uses less cycles so if I can get away with that I maybe just keep it.
Yeah I guess I wouldn’t want the "mix"parameter exposed to the user as going from -45 to 45. I switched it to the -1 to +1 system and it sounds great. Thank you
Oh that is interesting, would the equivalent of the above algorithm be the “balanced” rule then? I finished the project I needed this for but I am sure I will have to implement the same thing at some point in the future.