< Back to IRCAM Forum

Changing source positions

Hi,

I’m doing a project where all sounds are created in Supercollider. I’ve been working on this project for quite some time and I figured that it is best for my workflow to send OSC messages from SC to Max and using spat5.osc.slashify. I trigger interpolation between “scenes” this way using spat5.osc.interpolate - it works great!

I’m having trouble figuring out a way to phrase a message. In one message I would like to say
"/source/[5-6]/aed 0, 1, 2, 180, 2, 1"
I want this message to place source 5 in position 0,1,2 and source 6 in position 180 2 1. I know how to handle it with 2 messages, but it would be tremendous if I could do something like I suggest. If someone suggest using some sort of filter between - It would be great if that filter is ok with handling the amount of sources from 1 and up. So that I can say [/1, /2, /5] and so on. Anyone have a good suggestion?

The reason is that I want to avoid creating a lot of udpreceivers for every kind of figuration.

I want this message to place source 5 in position 0,1,2 and source 6 in position 180 2 1.
Hum… You indeed need two messages for that.

The OSC syntax /source/[5-6]/aed is made to dispatch the same arguments to both source 5 and 6 (per the OSC specifications). So the syntax that you propose “/source/[5-6]/aed 0, 1, 2, 180, 2, 1” would not work.
I understand it could be convenient in your use case to send only one message; but I dont think it’s doable.

The reason is that I want to avoid creating a lot of udpreceivers for every kind of figuration.

On the other hand, I dont understand why you would need multiple udpreceivers ?

Best,
T.

1 Like