Sending a message to a newdefault

    Oct 23 2013 | 9:21 pm
    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 | 2:10 pm
      how about maxObj.message(“test", "message”)? A list should start by a number.
    • Oct 24 2013 | 2:38 pm
      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 | 4:28 pm
      Patcher are special…
      This is not pretty but you can do something like this.
    • Oct 24 2013 | 5:13 pm
      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 | 8:13 pm
      No you can send a message to MaxObject but not to a patcher ;-)
    • Oct 24 2013 | 9:18 pm
      I see, I seem to be confusing an abstraction with an object. Will have to think about this some more.