Forums > Jitter

Incrementing Individual Jitter Cells

March 6, 2012 | 8:27 pm

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


March 7, 2012 | 1:31 am

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


March 7, 2012 | 9:23 pm

the loop with getcell is really simple, though.


March 7, 2012 | 10:08 pm

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…


March 7, 2012 | 10:59 pm

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. –

March 23, 2012 | 4:37 pm

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. –

March 23, 2012 | 7:22 pm

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

– Pasted Max Patch, click to expand. –

March 23, 2012 | 7:44 pm

Andrew’s solution is simpler, without a doubt.

Here’s the answer to your earlier question.

– Pasted Max Patch, click to expand. –

March 23, 2012 | 9:27 pm

Ah great those are both much better :D


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