Incrementing Individual Jitter Cells

Mar 6, 2012 at 8:27pm

Incrementing Individual Jitter Cells

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

#62195
Mar 7, 2012 at 1:31am

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

#224636
Mar 7, 2012 at 9:23pm

the loop with getcell is really simple, though.

#224637
Mar 7, 2012 at 10:08pm

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…

#224638
Mar 7, 2012 at 10:59pm

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

– Pasted Max Patch, click to expand. –
#224639
Mar 23, 2012 at 4:37pm

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.

– Pasted Max Patch, click to expand. –
#224640
Mar 23, 2012 at 7:22pm

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

– Pasted Max Patch, click to expand. –
#224641
Mar 23, 2012 at 7:44pm

Andrew’s solution is simpler, without a doubt.

Here’s the answer to your earlier question.

– Pasted Max Patch, click to expand. –
#224642
Mar 23, 2012 at 9:27pm

Ah great those are both much better :D

#224643

You must be logged in to reply to this topic.