Forums > Java

working with JitterObjects in mxj that don't output jitter matrices

Oct 03 2007 | 10:15 am

i’m trying to write a class for mxj that incorporates a JitterObject.

from the examples this seems to be straight forward for objects that
process and output jitter matrices, like in the
"javajitterfirsttest.pat" example, where jit.sobel and jit.brcosa are
used with the "matrixcalc" message:


but what about using a jitter object, which doesn’t output a jitter

i’d like to find the mean value of a 2d 1 plane matrix using jit.3m e.g.

JitterObject my3m = new JitterObject("jit.3m");
my3m.matrixcalc(myInputMatrix, ???);

thanks for any pointers.

Oct 03 2007 | 5:41 pm

Oct 03 2007 | 6:51 pm

May 20 2010 | 8:03 pm

same question but with jit.findbounds
findbounds has two outlets which output list two integer lists
how do i grab the output ?
myfindbounds.matrixcalc(mat, ???);

May 21 2010 | 1:30 pm


May 21 2010 | 6:02 pm

ok. i found this solution for js

in java:
my3m = new JitterObject("jit.3m");

my3m.matrixcalc(inmat, null);
outlet(1,"mean", my3m.getAttr("mean"));

but with jit.findbounds it doesent work ;-(
because the jit.findbounds outlet name "min bound" has got a blank ?
i tried als permutations "min bounds", "min_bounds", "minbounds"…
and allways get an
java.lang.NullPointerException: args argument cannot be null
error message

any ideas ?

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

Forums > Java