I have followed this: viewtopic.php?t=235347
and came up with a decent panning knob that pans left/right
I wrote two functions, one for panning left and one for pan right
Code: Select all
float PanL(float balance, float cv)
{
float p, gl;
p=M_PI*(balance+1)/4;
gl=::cos(p);
return gl;
}
float PanR(float balance , float cv)
{
float p, gr;
p=M_PI*(balance+1)/4;
gr=::sin(p);
return gr;
}
How could I "sum" balance + cv paramaters (it's not a simple sum, I am afraid )
Sorry for the "novice" question...