Sending a message to a newdefault

Oct 23, 2013 at 2:21pm

Sending a message to a newdefault

Hey folks,

I have created a Max object using “newdefault” from my javascript. I want to then send a message to this new object. I am using the following function…

maxObj.message(“list”, “test message”);

This seems to generate a script error. How do I send a MaxObject a message?
Is there a way I can specify a inlet number as well?


Oct 24, 2013 at 7:10am

how about maxObj.message(“test", "message”)? A list should start by a number.

Oct 24, 2013 at 7:38am

Hey Emmanuel, thanks for our response. I tried your suggestion, it compiles fine but I get the following error…

patcher: doesn’t understand “test”

The patcher I instantiated with “newdefault” is an abstraction of my own. Can I send the message to an inlet instead so that I can handle the message in my abstraction?

Oct 24, 2013 at 9:28am

Patcher are special…

This is not pretty but you can do something like this.

Oct 24, 2013 at 10:13am

Ugh, not pretty at all…

So are you saying there is no way to send a user defined message to a MaxObj via javascript?

Oct 24, 2013 at 1:13pm

No you can send a message to MaxObject but not to a patcher ;-)

Oct 24, 2013 at 2:18pm

I see, I seem to be confusing an abstraction with an object. Will have to think about this some more.


You must be logged in to reply to this topic.