Sending OSC to other applications from Server

Hello everyone,

Is it possible for me to send OSC from the scynth server to another app directly? (In this case Processing). At the moment I am sending to the sclang Client, which then forwards the message on to Processing. This works fine, but a more direct messaging would be optimal for various reasons.

Thank you for any help.

1 Like

Yes. You’d need to log into the server from the other app – see e.g. SendReply help – “A message is sent to all notified clients” where “notified” means that you’ve sent a /notify message, so that the server knows where to send messages to.

For example… I don’t have processing installed now, but I did get it to work in Pd:

SC side:

s.options.maxLogins = 2;  // 1 login for sclang, 1 for the other app
s.boot;

a = {
	var lfo = LFDNoise3.kr(0.1);
	SendReply.kr(Impulse.kr(10), '/lfo', lfo);
	Silent.ar(0)
}.play;

Then: 1. Connect the OSC sender. 2. Send [/notify, 1] to log in (in Pd, it’s /notify 1). 3. Get messages coming into the Pd originating port.

So you’d need the processing equivalent of these Pd constructions.

hjh

3 Likes

Hi!

Thank you very much for the reply, that makes it perfectly clear :slight_smile: