distributing random values / education

Dec 29, 2007 at 12:27pm

distributing random values / education

I’m trying to send a small number of random values to a large number of objects. for example, lets say i wanted to send 8 random frequencies to 100 cycle~ objects in a random distribution.

I’m baffled, and just wondering if anyone had any ideas or suggestions.

On that note, what educational tools would you suggest for a non-programmer to build their max skills? I’m so enthralled with this program, but I’m definitely lacking in the programming/math/logic skills that are really essential to being able to do what I want to do with max.

#35149
Dec 29, 2007 at 1:40pm

It’s really simple to do that, as often is the case with Max there are many ways it can be achieved. I’d probably try using poly~ and the target message. If you replace the ‘s poly’ object in my example patch with a poly~ object containing your cycle~ patch you’ll be in business.

As for learning resources do the tutorials thoroughly, look at the examples folder. Skim the Reference PDF’s they have an example for every object. These forums are a great source of inspiration and knowledge also, i’d suggest searching them with google using a site specific search like this:

“your topic site:http://www.cycling74.com/forums/

here is the poly~ example

#P button 133 145 21 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#N coll theFreqs 1;
#T flags 1 0;
#T 0 200;
#T 1 432;
#T 2 644;
#T 3 823;
#T 4 924;
#T 5 1023;
#T 6 1302;
#T 7 2456;
#P newobj 74 213 77 196617 coll theFreqs 1;
#P newex 74 193 52 196617 random 8;
#P newex 133 168 44 196617 uzi 100;
#P message 167 213 53 196617 target $1;
#P newex 133 251 37 196617 s poly;
#P comment 173 253 107 196617 < < replace with poly~;
#P connect 4 0 5 0;
#P fasten 5 0 1 0 79 248 138 248;
#P fasten 3 0 4 0 138 188 79 188;
#P connect 6 0 3 0;
#P connect 3 2 2 0;
#P fasten 2 0 1 0 172 248 138 248;
#P window clipboard copycount 7;

#119414
Dec 29, 2007 at 11:03pm

Quote: chartsandgraphs wrote on Sat, 29 December 2007 04:27
—————————————————-
> I’m trying to send a small number of random values to a large number of objects. for example, lets say i wanted to send 8 random frequencies to 100 cycle~ objects in a random distribution.
>
> I’m baffled, and just wondering if anyone had any ideas or suggestions.
>
> On that note, what educational tools would you suggest for a non-programmer to build their max skills? I’m so enthralled with this program, but I’m definitely lacking in the programming/math/logic skills that are really essential to being able to do what I want to do with max.
>
>
—————————————————-

I feel a little weird constantly pluggin my lab’s wares, but John MacCallum wrote a nice object called “randdist” that can be found here:

http://www.cnmat.berkeley.edu/MAX/downloads/

Also, there are a bunch of patches in the CNMAT MMJ Depot, some of which are educational.

mz

#119415

You must be logged in to reply to this topic.