error initializin jit.noise

Jesse's icon

When I instantiate jit.noise in a Java context I get the following error:

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

I can't see the problem - anyone?

Joshua Kit Clayton's icon

Inner Jitter MOP objects don't take the same arguments as their max wrapper counter parts. JitterMatrix does. And the way it works is that you pass in the JitterMatrix that you want to process (including for generators, which fill the matrix). Max wrapper objects essentially own special instances of JitterMatrix under the hood, and pass them to the jitter objects which operate on them. That is what those arguments are for. In C, Java, or Javascript creating and passing the JitterMatrix is your responsibility.

I believe that this is covered in the tutorials.

Hope this helps.

-Joshua

Jesse's icon

Ok, I think I generally understand this.

However, I believe that jit.slide is not functioning properly in the Java context. I've enclosed a Java source file and a max patcher illustrating the issue. The "slide_up" attribute does not behave as expected, and "slide_down" does not appear to work at all.

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

I'd appreciate some comments on my usage of the object in the Java context - is this the proper approach?

1163.SlideTest.java
java