Forums > MaxMSP

Adding lists individually, not sum

January 19, 2013 | 4:26 pm

Ex, I have 4 lists:
1 0 0 0 1 0 0 0
1 0 1 0 1 0 1 0
1 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1

i want to add the numbers "by column" so for this example it would be:
4 1 2 1 3 1 2 1

right now my solution involves splitting each list and adding them separately which involves a lot of objects (iter, count indexing, route, thresh, zl sum). Is there a more elegant way to do this?


January 19, 2013 | 4:52 pm

perfect! since getting into list processing i’ve learned a bunch of new objects. haven’t used vexpr before. thanks for the help!


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