Forums > Jitter

Output specific float in one plane depending on range in another

May 13, 2014 | 10:33 am

After a few days of research I still can’t figure out how to do this.
It seems either js or jit.expr will provide the best solution; not sure which, and then not quite sure how to program it.

Let’s say I have a 2 plane matrix, each 1 dim.
I’ve used jit.bsort @planemode 1

On plane 0 I have a number of cells; some 0, some 1, some 2, etc

On plane 1 I have floats going from 0., 0.25, 0.5, etc up to say…16.

So I’d only like to output cells in plane 0 containing 1., but only if they are between 2. to 5. in plane 1.
The float in plane 0 and the range in plane 1 is dynamic.
What I’d be using is a list like [1. 2. 5.]

I was trying a jit.expr which I’ve gotten used to before and read the ‘demystifying thread’ again but I’m not sure about the syntax or even if it will work.

So to recap, only output matrix cells that contain a specific float from plane 0 that is within a range from plane 1

– Pasted Max Patch, click to expand. –

Viewing 1 post (of 1 total)