XML Feeds

.

[maxmsp] compare 5 numbers

Rodrigo Constanzo rodrigo.constanzo at gmail.com
Sun Sep 2 05:46:04 MDT 2007


if you want them all to be differnt you can use an urn object instead
of random, and have it do it every 6seconds instead, and have them
sent to something like pack with the last number sent going to the
first inlet, to dump the list at the end of 30sec, with no duplicates

max v2;
#N vpatcher 475 143 1198 640;
#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P message 269 291 50 196617 16 25 36 69 63;
#P window linecount 1;
#P newex 269 264 62 196617 prepend set;
#P newex 346 123 27 196617 + 1;
#P newex 269 175 66 196617 gate 5;
#N counter;
#X flags 0 0;
#P newobj 346 97 66 196617 counter;
#P toggle 270 45 15 0;
#P newex 270 69 64 196617 metro 6000;
#P newex 269 237 75 196617 pack 0 0 0 0 0;
#P newex 270 96 46 196617 urn 100;
#P connect 6 0 5 0;
#P connect 5 4 1 0;
#P connect 1 0 7 0;
#P connect 7 0 8 0;
#P connect 3 0 2 0;
#P connect 2 0 0 0;
#P connect 5 3 1 1;
#P connect 5 2 1 2;
#P connect 5 1 1 3;
#P connect 0 0 5 1;
#P connect 5 0 1 4;
#P connect 2 0 4 0;
#P connect 4 0 6 0;
#P pop;

On 9/2/07, Richardo del Pozo <delpozo at mac.com> wrote:
>
> Hi.
> I?m using five random objects to create 5 numbers every 30000 millisecond
> What i have difficulties figuring out is how to make a comparison if one number is equal to another number in the list. Or if several of the numbers is equal.
> Any idea?
> Thanks Richardo
>
> _______________________________________________
> maxmsp mailing list
> maxmsp at cycling74.com
> http://www.cycling74.com/mailman/listinfo/maxmsp
>


More information about the maxmsp mailing list