Oscout using a variable as (part) of the adress

Discuss problems and solutions.
Post Reply
Anton
Regular
Posts: 74
Joined: 08 Dec 2011 12:36

Oscout using a variable as (part) of the adress

Post 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!
Anton
Regular
Posts: 74
Joined: 08 Dec 2011 12:36

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

Post by Anton »

And a second question. Is there a way to change the osc in for a fader dynamically?
Post Reply