Strange "preset" send behavior…

May 7, 2011 at 3:05am

Strange "preset" send behavior…

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?

#56947
May 7, 2011 at 2:19pm

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

#204107
May 7, 2011 at 4:37pm

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

#204108
May 7, 2011 at 7:11pm

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

#204109
May 9, 2011 at 9:56am

@Ben: So like this you mean?

Answering my own question: yes indeed, that works.

– Pasted Max Patch, click to expand. –
#204110
May 9, 2011 at 4:35pm

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

#204111

You must be logged in to reply to this topic.