XML Feeds

.

[maxmsp] Random between +/- 128.0??

keith manlove keithmanlove at gmail.com
Wed Aug 1 17:27:43 MDT 2007


here's one of many:

#N vpatcher 10 59 610 459;
#P button 65 40 15 0;
#P window setfont "Sans Serif" 9.;
#P flonum 65 136 40 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 65 112 39 196617 - 128.;
#P newex 65 88 34 196617 / 10.;
#P newex 65 62 70 196617 random 2560;
#P connect 4 0 0 0;
#P connect 0 0 1 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;

It really helps to start thinking of numbers in max like this.

Keith

On 8/1/07, UCDMSRA <xlight63 at hotmail.com> wrote:
>
> Hi,
>
> I think maybe I didn't sleep very well these days so when I need to create a random number between +128.0 and -128.0, my brain suddenly stopped and feels like empty.....
>
> I know "random" can only make 0+ numbers. I also think of the possibilities by put "-" after random to make the number below 0....however, I still want to make "real" random number between +/-128.0 and it is must be float number, so the result will be something like "9.5, -4.8, 25.4, 46.7, 53.6, -42,1...."
>
> If you know how to do it, would you please pleas tell me?
>
> thanks
> _______________________________________________
> maxmsp mailing list
> maxmsp at cycling74.com
> http://www.cycling74.com/mailman/listinfo/maxmsp
>


More information about the maxmsp mailing list