Auto numbering send and receive objects?

snaper's icon

Hy Guys,

Have a weird idea, and would like to know this :

Is it possible (or is it an easy way) to auto numbering send and receive objects?

I would like to create a receiver device, and a send device. The receiver device will show the values from the send deviceS. And this is the problem. I would like to create only 1 send device and use it multiple times but wont create 20-30 instance with different send numbers.

Could you help me?

joeman's icon

Hi Snaper,

It's fairly straightforward to auto number send/receive objects via [counter], [sprintf] (or similar), and scripting messages to [thispatcher]. But perhaps you need just need to look at [forward]? And [receive] can have its name changed on the fly by sending it a message.

Your description of what you want to achieve was a bit unclear. You said you want to create only one send but then said you want 20-30 sends with different names. This seems contradictory.

Cheers,

Joe

snaper's icon

Yes, sorry, I will clear this.
I would like to create 1 device, with 1 send object, 1 device with 1 receive, but would like to use the first device multiple times.

joeman's icon

If all the send devices are going to the one receive device then what's stopping them all having the same identifier?

If you need the receive device to display where the particular send is coming from, then you'll need to give each send a unique name (see note below) and to change the receive input via message and then patch together some other indicator that states which send is currently being received.

To give each send a unique name automatically, I assume you'd be dealing with abstractions or bpatchers. If so, you simply need to use arguments given to the abstraction on instantiation. The send object inside the abstraction might therefore look like this:

[s #1_blahblah]

Then to deal with the receive object knowing which send to listen to at any point in time you'll have to do something similar to the following:

Have inside the abstraction a simple send message to a simple receive message inside the "receive device" that when applicable says: "Hey! I'm sending and my name is #x_blahblah. Listen to me!"

Does that makes sense/fit your needs?

Joe

snaper's icon

Yes, that is OK, thank you.
Now i just need to know how to observe the track numbers in Live...I know how to do this with live.object, but would like to do with live.observer :S

snaper's icon

Played a bit with the forward suggestion...

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

This is the device what will send the data to the receiver (this will used multiple times) :

As you can see, I've named the forward object after the Ableton channel.

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

This device should receive the data :

The problem is that it receives and shows only the last inserted devices data...maybe Im blind and don't see an obvious error...

joeman's icon

snapper, send and receive names need to have no spaces. All your send and receive objects in the patches you uploaded are named "channel". You need to remove the space between the name and the number for this to work.

Something like this will work (provided you name the receive object accordingly):

[int]
|
{$1_channel}
|
[prepend send]
|
[forward]