error initializin jit.noise

Nov 24, 2009 at 11:17pm

error initializin jit.noise

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?

#46773
Dec 16, 2009 at 10:12pm

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

#168249
Sep 21, 2010 at 5:35am

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
#168250

You must be logged in to reply to this topic.