[PD] tight syncing of two pd machines...
Marc Lavallée
odradek at videotron.ca
Wed Dec 17 01:15:06 CET 2003
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
IANM too.
--
Marc
More information about the Pd-list
mailing list