Is it possible to send to a message to specific M4L device instances?

5 posts / 0 new
Last post
rudestar
Offline
Joined: 02/05/2010
Is it possible to send to a message to specific M4L device instances?

Hi All,
I am trying to put together an application that has several child devices that need messages sent from a master device. I can send messages to devices using s and r objects but that sends the message to all objects. I am wondering is it possible to send only to a specific device instance? Such as provide some kind of ID and send messages to that specific device? Would I be better off sending the messages as MIDI and routing each device on a separate channel?
Thanks in advance!
rudestar
 

mchenetz's picture
mchenetz
Offline
Joined: 09/17/2009

When you create the name with send/receive use three dashes before the name.

send ---name1
receive ---name1

This makes the name unique to that instance.

Mike

rudestar
Offline
Joined: 02/05/2010

Do you mean so that patches wont talk to other patches? I was probably not clear enough. I think I managed to solve the problem anyway.

I can use a dynamic send name by sending with a message "send $1, $2" and then route to forward. I can then use the blank "receive" object and set the receive id using a message with the "set" command.

Thanks for your help,

Rudi

mchenetz's picture
mchenetz
Offline
Joined: 09/17/2009

Can you give me an example of what you are trying to do? I think i am confused. If you have already fixed it then don't worry about it.

Mike

rudestar
Offline
Joined: 02/05/2010

I have solved it but thank you for your help!