Forums > Jitter

non sequential matrix processing bassed on condition?

October 25, 2011 | 12:04 pm


It is possible to processe selectively the content of a matrix based on a condition without scanning it with "uzi" like objects?

I want to do something like this:

"if the value stored on a particular x-y at plane 0 is equal to something, then perform an operation over the value stored in the same x-y at plane 1".


October 25, 2011 | 1:09 pm

You can access individual cells of a matrix with ‘getcell’ and ‘setcell’.

For details of message format see help/reference page.

October 25, 2011 | 1:42 pm

Example using jit.expr

– Pasted Max Patch, click to expand. –

October 25, 2011 | 3:54 pm

@broc: may be I’m wrong, but as far as I know, getcell and setcell works on a single x-y position on the matrix, and I need to process all x-y positions on a single operation, please let me know if I’m wrong.

@David Butler: that is exactly what I’m talking, thanks!

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