[jit.gen] compare & retrieve cell

touk's icon

Hi all,

Need somebody to tell me if it's possible;

i want to retrieve at each instant in [jit.gen] the index of the cell where [ in1.y ] is the smallest value in comparison with other in [in1.y]
knowing that the values ​​are different and change....

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

attached patch :

Wesley Smith's icon

Do you mean, you're looking for the cell where in1.y is the smallest in.y in the entire matrix? If so, you can do this easily with jit.3m and jit.op. jit.gen isn't going to give you any advantages for this problem. You can use jit.3m to get the min value for the y value and then use jit.op @op

touk's icon

Thank you for your answer Wesley,

you understand what I meant and I wanted to know if this was possible using [jit.gen].

Wesley Smith's icon

You can use jit.gen, but you'll want to use jit.3m as well. It's the most efficient way to figure out what the smallest value in the entire matrix is going to be.

Julien Bayle's icon

could you please detail the jit.op marking process to finally have the cell coordinates ?

Julien Bayle's icon

oops. no prob. I had another artifact that glitched my stuff.
this is pretty obvious with jit.findbounds

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

here is the thing for people for whom it isn't.

4348.cellMarking.PNG
PNG