Forums > MaxMSP

Modifying one value in all slots – Pattr

November 28, 2008 | 1:34 pm

So if I have 3 slots in pattr each with 3 items for example:

SLOT1) a = 1; b = 2; c = 3;
SLOT2) a = 2; b = 4; c = 1;
SLOT3) a = 1; b = 3; c = 1;

Is there anyway I can overwrite all the values of c but leave the rest of the presets intact so that it becomes:

SLOT1) a = 1; b = 2; c = 0;
SLOT2) a = 2; b = 4; c = 0;
SLOT3) a = 1; b = 3; c = 0;

The only way I can think to do this is to load each in succession and replace individually but when there are a lot of slots this doesn’t work too well.

Thanks.


November 28, 2008 | 1:49 pm

Well I feel foolish, the answer was in the documentation.

‘setall’ is the message for anyone who was wondering.


November 28, 2008 | 5:06 pm

ah! just thought [match] might do it, too.

jrp


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