Page 1 of 1

Oscout using a variable as (part) of the adress

Posted: 13 Oct 2012 14:25
by Anton
Using script it is possible to send out a osc message with oscout.
Its syntax is

Code: Select all

 oscout(target,adress,value) 

Code: Select all

 oscout(0,'/foobar', x )
would send rhe osc message /foobar/x to target 0

Is it possible to have both a string and a variable as part ofthe adress? For example

Code: Select all

 oscout(target,'/foobar/'Menu.selection,value) 
This last example doesnt compile for me. Im thinking the only way to do it must be to combine the string and the variable befor the oscout in a new variable. Is this the case and could somebody help me out as to how to combine a string with a number into a new string?

Thanks!

Re: Oscout using a variable as (part) of the adress

Posted: 13 Oct 2012 22:19
by Anton
And a second question. Is there a way to change the osc in for a fader dynamically?