Forums > MaxMSP

is there a average object??

November 23, 2006 | 6:45 pm

i am using the jit.3m object and want to average out the outputs it gives, does anyone know if there is an object that can average these 4 readings??

regards
james


November 23, 2006 | 6:59 pm

expr (($i1 + $i2 + $i3 + $i4) / 4)) ?

v a d e //

http://www.vade.info
abstrakt.vade.info

On Nov 23, 2006, at 1:46 PM, james wrote:

>
> i am using the jit.3m object and want to average out the outputs it
> gives, does anyone know if there is an object that can average
> these 4 readings??
>
> regards
> james


November 23, 2006 | 7:00 pm

is that in an object box and do u include the expression part??


November 23, 2006 | 7:26 pm

On 23-Nov-2006, at 19:46, james wrote:

> i am using the jit.3m object and want to average out the outputs it
> gives, does anyone know if there is an object that can average
> these 4 readings??

You mean like this with lp.stacey?

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 342 260 106 196617 lp.stacey 4;
#P flonum 418 282 35 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 399 301 35 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 380 319 35 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 361 337 35 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 224 260 106 196617 lp.stacey 4;
#P flonum 300 282 35 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 281 301 35 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 262 319 35 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 243 337 35 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 106 260 106 196617 lp.stacey 4;
#P flonum 182 282 35 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 163 301 35 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 144 319 35 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 125 337 35 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 452 337 90 196617 Minimum;
#P comment 452 319 59 196617 Maximum;
#P comment 452 301 59 196617 Mean;
#P comment 452 283 98 196617 Standard Deviation;
#P message 202 177 28 196617 stop;
#P flonum 234 152 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 234 177 42 196617 rate $1;
#P message 171 177 28 196617 read;
#P flonum 140 156 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 106 156 15 0;
#P newex 106 176 44 196617 metro 2;
#P newex 106 215 103 196617 jit.qt.movie 320 240;
#P newex 106 238 365 196617 jit.3m;
#P window linecount 2;
#P comment 218 211 100 196617 All of this assumes a 4-plane movie;
#P connect 1 2 28 0;
#P connect 1 1 23 0;
#P connect 28 1 24 0;
#P connect 28 2 25 0;
#P connect 28 3 26 0;
#P connect 28 4 27 0;
#P connect 23 4 22 0;
#P connect 23 3 21 0;
#P connect 23 2 20 0;
#P connect 23 1 19 0;
#P connect 1 0 18 0;
#P connect 18 1 14 0;
#P connect 18 2 15 0;
#P connect 18 3 16 0;
#P connect 18 4 17 0;
#P connect 2 0 1 0;
#P connect 4 0 3 0;
#P fasten 9 0 2 0 207 203 111 203;
#P fasten 3 0 2 0 111 208 111 208;
#P fasten 7 0 2 0 239 203 111 203;
#P fasten 6 0 2 0 176 203 111 203;
#P connect 5 0 3 1;
#P connect 8 0 7 0;
#P window clipboard copycount 29;

Stacey is part of the free Litter Starter Pack

————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +–> Litter Power & Litter Bundle for Jitter
Universal Binaries on the way
iCE: Sequencing, Recording &
Interface Building for |home | chez nous|
Max/MSP Extremely cool |bei uns | i nostri|
http://www.dspaudio.com/ http://www.castine.de


November 23, 2006 | 7:38 pm

look at the helpfile for expr :)

v a d e //

http://www.vade.info
abstrakt.vade.info

On Nov 23, 2006, at 2:00 PM, james wrote:

>
> is that in an object box and do u include the expression part??


November 23, 2006 | 7:47 pm


November 23, 2006 | 7:53 pm

#is that in an object box and do u include the expression part??

yes


November 23, 2006 | 10:58 pm

You might also want to look at the "mean" object.

jb


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