Quick and efficient way to differentiate between patch instances?

Oct 10, 2012 at 1:40pm

Quick and efficient way to differentiate between patch instances?

I have multiple instances of a single patch. Is there a way to send and receive messages (preferably wireless) to a specific patch instance without renaming all the receive objects in each patch?

Otherwise a sent message is received by all patch instances.

– Pasted Max Patch, click to expand. –

The only method I can think of is prepending each message with a number and then using a routing method inside each patch.

#64705
Oct 10, 2012 at 1:56pm

One way is to use #1. Check the attachment.

p

Attachments:
  1. untitledfolder.zip
#233386
Oct 10, 2012 at 2:14pm

That looks promising. I will have to rename all the receive objects then.

This method in combination with a forward object will tidy things up a great deal, thank you.

#233387
Oct 10, 2012 at 3:03pm

Can anyone explain why option 1 in the patch doesn’t work yet option 2 does?

– Pasted Max Patch, click to expand. –

It is not terribly important, I’m just curious. I’ll go with option 2 if option 1 isn’t viable.

#233388
Oct 10, 2012 at 3:21pm

A comma in a message box is equivalent to 2 successive messages. With sprintf you’re not generating 2 messages. See this:

– Pasted Max Patch, click to expand. –
#233389
Oct 10, 2012 at 4:01pm

Cool. That’s clear now. Thanks again.

#233390

You must be logged in to reply to this topic.