Forums > MaxMSP

Strange "preset" send behavior…

May 7, 2011 | 3:05 am

I am using [send] to send messages to preset objects
in various patches. Look at this sample…

– Pasted Max Patch, click to expand. –

When I click on "preset 1" I get the following message:

send: extra arguments for message "preset"

And my message does not arrive. No error with "foo 1".

What is this strange behavior?


May 7, 2011 | 2:19 pm

Hi,

The issue is the _space_ between "preset" and "1." You need to put the whole message in "" in order to have no error messages. Max reads the (preset 1) message as two arguments.

So use:
"preset 1" inside the message box and it will be sent as 1 argument.

Hope this helps,

Regards,

1CS Support Team
support@1stcreativesolutions.co.uk

http://www.1stcreativesolutions.co.uk


May 7, 2011 | 4:37 pm

If that is the case, then why does foo 1 not produce the same error.


May 7, 2011 | 7:11 pm

You wouldn’t know this other than stumbling upon it like you have, but ‘preset’ is a reserved word for s/r. It allows for the leftmost outlet of preset to be connected to a send object, to communicate with objects connected to a receive object of the same name.

-Ben



EMV
May 9, 2011 | 9:56 am

@Ben: So like this you mean?

Answering my own question: yes indeed, that works.

– Pasted Max Patch, click to expand. –

May 9, 2011 | 4:35 pm

Actually, both should work, but there seems to be an issue when you use two preset objects in the same patcher and no UI objects directly connected to the leftmost outlet of preset.

I’ll take a closer look.

-Ben


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