[maxmsp] Adding all values in a list.
Gaxie Sébastien
s.gaxie at noos.fr
Mon Apr 7 10:39:37 MDT 2008
- Previous message: [maxmsp] Adding all values in a list.
- Next message: [maxmsp] Adding all values in a list.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This might be a solution... max v2; #N vpatcher 24 74 624 474; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 134 53 140 196617 t b b b; #B color 5; #P message 264 82 33 196617 set 0; #P newex 134 162 49 196617 accum; #P button 134 30 15 0; #P message 153 95 82 196617 5 6 7 8 9 10 11; #P newex 153 127 47 196617 zl iter 1; #B color 5; #P connect 2 0 5 0; #P connect 5 0 3 0; #P fasten 4 0 3 0 269 153 139 153; #P connect 5 1 1 0; #P connect 1 0 0 0; #P connect 0 0 3 1; #P fasten 5 2 4 0 269 75 269 75; #P pop; Sébastien Gaxie 6 passage de Ménilmontant 75011 Paris 0033(0)148068596 0033(0)620596486 s.gaxie at noos.fr Le 7 avr. 08 à 17:46, Barrie a écrit : > > Is there any object or external that will take a list of integers > and add all the values, outputting a single value. > > In my case i have a patch which includes a constantly changing list > of 25 integer values, for which i need the total value. > > I currently have it set up like so: > > [list] -> [unpack] -> [expr $i1 + $i2...] -> [number] > > This works but is kinda messy, what with 25 values being outputted > from the [unpack], and [expr] only supporting 9 inputs (meaning i > need 3 of them, plus a further one to add the outputs of those). > > Thanks in advance. > > :) > _______________________________________________ > maxmsp mailing list > maxmsp at cycling74.com > http://www.cycling74.com/mailman/listinfo/maxmsp -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cycling74.com/pipermail/maxmsp/attachments/20080407/5ad198b8/attachment.htm
- Previous message: [maxmsp] Adding all values in a list.
- Next message: [maxmsp] Adding all values in a list.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
