Strange "preset" send behavior...

Anthony Palomba's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

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?

1st Creative Solutions's icon

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

www.1stcreativesolutions.co.uk

Anthony Palomba's icon

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

Ben Bracken's icon

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's icon

@Ben: So like this you mean?

Max Patch
Copy patch and select New From Clipboard in Max.

Answering my own question: yes indeed, that works.

Ben Bracken's icon

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