Forums > MaxMSP

Quick and efficient way to differentiate between patch instances?

Oct 10 2012 | 1:40 pm

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.

Oct 10 2012 | 1:56 pm

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


Oct 10 2012 | 2:14 pm

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.

Oct 10 2012 | 3:03 pm

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.

Oct 10 2012 | 3:21 pm

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. --

Oct 10 2012 | 4:01 pm

Cool. That’s clear now. Thanks again.

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

Forums > MaxMSP