On Tue, Dec 16, 2003 at 04:20:41PM -0600, Eric Skogen wrote:
first idea that comes to mind:
0...127 | [ expr ((($f1 / 127) * 720) - 360) ] | -360...360
but IANM (i'm not a mathematician)...
You are right, I was wrong.
My idea was:
( ( ( <midi value> * 720 ) + 1 ) / 127 ) - 360
But it's actually:
( <midi value> * 720 / 127 ) - 360
or (without expr):
0...127 | [ * 720 ] | [ / 127 ] | [ - 360 ] | -360...360
Marc