matrixcalc error

Apr 21, 2009 at 9:06pm

matrixcalc error

I’m getting the following error in the Max window (java compiles fine) when inputting a matrix:

1297306704 calling matrixcalc on jit_rota

I’m not sure what this means, could someone point me in the right direction? Only references on the forum I could find were to dealing with more than one input matrix which is not my problem.

Here is some example code to demonstrate:

import com.cycling74.max.*;
import com.cycling74.jitter.*;

public class transToSegsBETA extends MaxObject {

	JitterObject myRota = new JitterObject("jit.rota");
	JitterMatrix work = new JitterMatrix(1, "float32", 1);

	public transToSegsBETA()
		myRota.setAttr("boundmode", 1);
		myRota.setAttr("offset_x", 1);

	public void jit_matrix(String inputMatrix_name)
		JitterMatrix inputMatrix = new JitterMatrix(inputMatrix_name);
		int dim[] = inputMatrix.getDim();
		myRota.matrixcalc(inputMatrix, work);
		outlet(0, "jit_matrix "+work.getName());
Apr 22, 2009 at 8:38am

Try this:

outlet(0, "jit_matrix", work.getName());
Apr 22, 2009 at 8:14pm
Emmanuel Jourdan wrote on Wed, 22 April 2009 04:38
Try this:
outlet(0, "jit_matrix", work.getName());

I’m pretty sure there error isn’t in my outlet() statement–both because it does output a valid matrix (just one that didn’t pass through the jit.rota) and that statement worked in some older code of mine. I will try phrasing it your way when I get home to see if it makes a difference).

Apr 23, 2009 at 4:25pm

Turns out it was a mistake in my patch, not in my Java causing the error. Thanks for the help anyway ej.


You must be logged in to reply to this topic.