Incrementing Individual Jitter Cells

Sam DeLaughter's icon

Very simple issue, so I may be missing something obvious. Is there a way to add 1 to the value of a single cell in a 3-dimensional jitter matrix without using getcell?

Thanks

Wesley Smith's icon

No. There isn't an increment_cell or equivalent message.

Wetterberg's icon

the loop with getcell is really simple, though.

Sam DeLaughter's icon

It is, but then you're either incrementing every time you send a getcell, or you end up with a bunch of instances of the same matrix. Could put in a gate I suppose, but it just seems like too many objects for such a simple task. Maybe in Max7...

Jesse's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Use jit.expr to create the appropriate mask, and then add it to the original matrix using jit.op.

Andrew Blanton's icon
Max Patch
Copy patch and select New From Clipboard in Max.

this is great, but can the value in the mask be changed through exper or is the output only boolean? I have this solution but seems a like a bit much.

Andrew Benson's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I think this is a little closer to what you are looking for

Jesse's icon

Andrew's solution is simpler, without a doubt.

Max Patch
Copy patch and select New From Clipboard in Max.

Here's the answer to your earlier question.

Andrew Blanton's icon

Ah great those are both much better :D