Arrays, in and out of the JS object?

Aug 14, 2013 at 5:07pm

Arrays, in and out of the JS object?

How?

Most importantly in. If I have what max says is a list, how can I pass it into a function stored in my js object as an array? Especially in cases where the function takes multiple parameters, and the array is not the first parameter?

#258919
Aug 14, 2013 at 5:26pm

Okay, got it.

In max use a tosymbol on the list.

In your javascript, use a str.split(” “);

Maybe helping future someones.

#258921
Aug 18, 2013 at 2:21am

You should look at the list and anything methods.

#259167
Aug 29, 2013 at 4:03pm

How can exercise discretion between inlets and message types, for instance if I want to handle a list only coming in on the second inlet?

#260235
Aug 29, 2013 at 5:02pm

You can use ‘this.inlet’ property.

-Ben

#260236
Sep 6, 2013 at 4:48am

Very cool, thank you!

#264467

You must be logged in to reply to this topic.