Skip to content

Instantly share code, notes, and snippets.

@devin-dominguez
Created May 21, 2019 18:03
Show Gist options
  • Save devin-dominguez/9131e9a10ed33f7bddd37552ee892544 to your computer and use it in GitHub Desktop.
Save devin-dominguez/9131e9a10ed33f7bddd37552ee892544 to your computer and use it in GitHub Desktop.
constant power panning
sqrt(2) / 2 = 0.7071067811865476
p in range of -PI/2 to PI/2, or -0.125 to 0.125 when normalized
A = (sqrt(2) / 2) * (cos(p) - sin(p))
B = (sqrt(2) / 2) * (cos(p) + sin(p))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment