Hi, I was moving some code away from using OscRecv and OscSend to make use of OscIn/OscOut and OscMsg. I found the versions file (under 1.3.4.0) useful in doing this. The example r.ck within the OSC examples was also useful. I did find something that I was unclear about though within it. What is the purpose of the if within line 15? 9: OscIn oin; 14: // create an address in the receiver 15: oin.addAddress( "/foo/notes, if" ); https://github.com/ccrma/chuck/blob/master/examples/osc/r.ck All the best Scott
Hello Scott,
The "if" argument is the OSC Type Tag String, which specifies the argument
types sent to that address. In this case, one int32 (i) and one float32
(f).
http://opensoundcontrol.org/spec-1_0
michael
On Fri, Jul 6, 2018 at 8:51 AM, Scott Hewitt
Hi,
I was moving some code away from using OscRecv and OscSend to make use of OscIn/OscOut and OscMsg. I found the versions file (under 1.3.4.0) useful in doing this.
The example r.ck within the OSC examples was also useful. I did find something that I was unclear about though within it.
What is the purpose of the if within line 15?
9: OscIn oin;
14: // create an address in the receiver 15: oin.addAddress( "/foo/notes, if" );
https://github.com/ccrma/chuck/blob/master/examples/osc/r.ck
All the best
Scott _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Hi,
Thanks that makes sense.
Do you know if I am right in thinking that it is optional?
Scott
----------
visit me
http://www.scotthewitt.co.uk
@scotthewitt
http://www.ablelemon.co.uk
http://www.theaudiopodcast.co.uk
On 6 July 2018 at 15:05, Michael Heuer
Hello Scott,
The "if" argument is the OSC Type Tag String, which specifies the argument types sent to that address. In this case, one int32 (i) and one float32 (f).
http://opensoundcontrol.org/spec-1_0
michael
On Fri, Jul 6, 2018 at 8:51 AM, Scott Hewitt
wrote: Hi,
I was moving some code away from using OscRecv and OscSend to make use of OscIn/OscOut and OscMsg. I found the versions file (under 1.3.4.0) useful in doing this.
The example r.ck within the OSC examples was also useful. I did find something that I was unclear about though within it.
What is the purpose of the if within line 15?
9: OscIn oin;
14: // create an address in the receiver 15: oin.addAddress( "/foo/notes, if" );
https://github.com/ccrma/chuck/blob/master/examples/osc/r.ck
All the best
Scott _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (2)
-
Michael Heuer
-
Scott Hewitt