Forums > Java

error initializin jit.noise

November 24, 2009 | 11:17 pm

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

#N: extra arguments for message "jit_noise"

The initialization code is as follows:

JitterObject noise = new JitterObject( "jit.noise", new Atom[] { Atom.newAtom( 4 ), Atom.newAtom( "float32" ), Atom.newAtom( 512 ), Atom.newAtom( 512 ) } );

I can’t see the problem – anyone?


December 16, 2009 | 10:12 pm

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


September 21, 2010 | 5:35 am

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.

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

– Pasted Max Patch, click to expand. –
Attachments:
  1. SlideTest.java

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