XML Feeds

.

[jitter] Re: Re: smoothing changing values - inertia - slide - acceleration

Jean-Fran ç ois Charles jeanfrancois.charles at newflore.org
Sun Jul 1 13:07:47 MDT 2007


You want a sigmoid function, not an exponential, right?
Here is a patch quickly made. Wikipedia "sigmoid function".
Jean-François.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 407 55 59 196617 graph it:;
#P newex 470 72 48 196617 t b clear;
#P newex 547 201 39 196617 !- 100;
#P newex 547 182 41 196617 * 100.;
#P newex 504 134 27 196617 t i i;
#P button 470 55 15 0;
#P newex 504 115 27 196617 -1;
#P newex 521 153 40 196617 / 100.;
#P newex 504 220 54 196617 pack 0. 0.;
#P message 504 239 103 196617 setpixel \$1 \$2 0 0 0;
#P user lcd 447 281 100 100 1 1 0 0 0;
#P newex 470 96 44 196617 uzi 100;
#P newex 278 233 98 196617 zmap 0. 1. -5.5 5.5;
#P flonum 278 207 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 278 298 45 196617 t 2.71 f;
#P flonum 278 401 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 278 369 31 196617 !/ 1.;
#P newex 278 350 27 196617 + 1.;
#P newex 278 278 34 196617 * -1.;
#P newex 278 331 27 196617 pow;
#P flonum 278 260 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 148 304 100 196617 sigmoid function:;
#P fasten 14 0 8 0 526 172 283 172;
#P connect 8 0 9 0;
#P connect 9 0 1 0;
#P connect 1 0 3 0;
#P connect 3 0 7 0;
#P connect 7 0 2 0;
#P connect 2 0 4 0;
#P connect 4 0 5 0;
#P connect 5 0 6 0;
#P connect 7 1 2 1;
#P fasten 20 1 11 0 513 92 452 92;
#P connect 12 0 11 0;
#P connect 16 0 20 0;
#P connect 20 0 10 0;
#P connect 10 2 15 0;
#P connect 15 0 17 0;
#P connect 17 0 13 0;
#P connect 13 0 12 0;
#P connect 17 1 14 0;
#P fasten 6 0 18 0 283 423 628 423 628 178 552 178;
#P connect 18 0 19 0;
#P connect 19 0 13 1;
#P window clipboard copycount 22;



At 7/1/07 2:31 PM, you wrote :

> run a search on the main max list for "exponential"
> 
> 
> On 7/1/07, secco <secondbox at gmx.net> wrote:
>> 
>> 
>> it's not from a sensor it's user input. the user can choose the
>> destination coordinates of different objects. the objects then move to these
>> coordinates. this movement should accelerate and decelerate softly.
>> _______________________________________________
>> jitter mailing list
>> jitter at cycling74.com
>> http://www.cycling74.com/mailman/listinfo/jitter
>> 
> _______________________________________________
> jitter mailing list
> jitter at cycling74.com
> http://www.cycling74.com/mailman/listinfo/jitter





More information about the jitter mailing list