Forums > MaxMSP

largest value from a number of inputs

February 25, 2008 | 3:35 pm

doews anyone know of an object that takes multiple inputs and outputs the largest, as in the patch?

#P window setfont "Sans Serif" 9.;
#P flonum 239 97 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 201 97 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 163 97 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 125 97 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 239 168 15 0;
#P toggle 201 168 15 0;
#P toggle 163 168 15 0;
#P toggle 125 168 15 0;
#P window linecount 1;
#N vpatcher 20 74 366 318;
#P outlet 200 119 15 0;
#P outlet 168 119 15 0;
#P outlet 140 119 15 0;
#P outlet 106 119 15 0;
#P inlet 204 85 15 0;
#P inlet 168 85 15 0;
#P inlet 138 85 15 0;
#P inlet 108 85 15 0;
#P pop;
#P newobj 125 132 126 196617 p biggest;
#P window linecount 2;
#P comment 42 57 100 196617 is there an external that does this?;
#P connect 6 0 1 0;
#P connect 7 0 1 1;
#P connect 8 0 1 2;
#P connect 9 0 1 3;
#P connect 1 3 5 0;
#P connect 1 2 4 0;
#P connect 1 1 3 0;
#P connect 1 0 2 0;
#P window clipboard copycount 10;


February 25, 2008 | 3:52 pm


February 25, 2008 | 5:13 pm

i suppose it does, but i was hoping to find an object that a) accepts multiple inputs, and b) has a seperate outlet for each. it would be simple enough to make myself i guess though.

thanks


February 25, 2008 | 5:29 pm


February 25, 2008 | 5:37 pm

exactly like that!!!!

i’m not even going to post my solution. a few more [>] and [&&] and toggles than were really necessary.

thankyou very much for being so useful emmanuel

robin


Viewing 5 posts - 1 through 5 (of 5 total)