[Csnd] OSC Network Basics
Date | 2011-09-07 20:50 |
From | Jim Aikin |
Subject | [Csnd] OSC Network Basics |
I need to do a brief writeup of how to use Csound with OSC. I can probably figure out the syntax of OSC messages themselves, but I have no idea how to create or specify a port. Nor do I have the remotest idea how one might interconnect two computers using OSC. Is there a decent online tutorial on this topic? I looked on the opensoundcontrol website and didn't immediately spot anything applicable. Thanks for any tips! --Jim Aikin -- View this message in context: http://csound.1045644.n5.nabble.com/OSC-Network-Basics-tp4779868p4779868.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-09-07 20:58 |
From | Dave Phillips |
Subject | Re: [Csnd] OSC Network Basics |
Jim Aikin wrote: > I need to do a brief writeup of how to use Csound with OSC. I can probably > figure out the syntax of OSC messages themselves, but I have no idea how to > create or specify a port. Nor do I have the remotest idea how one might > interconnect two computers using OSC. > > Is there a decent online tutorial on this topic? I looked on the > opensoundcontrol website and didn't immediately spot anything applicable. > > Thanks for any tips! > > --Jim Aikin > Hi Jim, Perhaps something useful here : http://www.linuxjournal.com/content/introduction-osc Best, dp Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-09-07 21:29 |
From | joachim heintz |
Subject | Re: [Csnd] OSC Network Basics |
andrés did a nice video tutorial about communication between pd and csound via osc: http://www.youtube.com/watch?v=JX1C3TqP_9Y&list=PL3EE3219702D17FD3&index=12&feature=plpp perhaps you find it useful. joachim Am 07.09.2011 21:50, schrieb Jim Aikin: > I need to do a brief writeup of how to use Csound with OSC. I can probably > figure out the syntax of OSC messages themselves, but I have no idea how to > create or specify a port. Nor do I have the remotest idea how one might > interconnect two computers using OSC. > > Is there a decent online tutorial on this topic? I looked on the > opensoundcontrol website and didn't immediately spot anything applicable. > > Thanks for any tips! > > --Jim Aikin > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/OSC-Network-Basics-tp4779868p4779868.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-09-07 21:32 |
From | zappfinger |
Subject | [Csnd] Re: OSC Network Basics |
Hi Jim, The following might be useful: http://csound.1045644.n5.nabble.com/file/n4780010/OSC_overview.pdf OSC_overview.pdf Basically, a program that sends OSC data is a client, a program that receives OSC data is a server. The client needs to know the IP address and port number of the server. The server only needs to listen on this port number. In Csound, you specify this as follows: giosc1 OSCinit 9000 This global 'handle' giosc1 will listen for port 9000. In an instrument definition you define the following: kans OSClisten giosc1, "/freq", "f", kval Here you actually listen for this port and only for the messages with tag '/freq', which must be a floating point type ("f"). You can determine the port number yourself, however: Since OSC ports are actually sockets, it is good not to use the lower (well known port) numbers 0 - 1023. But say anything like 9000 or above is fine. Then, when you connect an OSC client to an OSC server on the *same* PC, you have to specify the 'localhost' IP address, or: 127.0.0.1. Hope this helps you out. regards, Richard -- View this message in context: http://csound.1045644.n5.nabble.com/OSC-Network-Basics-tp4779868p4780010.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-09-08 06:37 |
From | Jim Aikin |
Subject | [Csnd] Re: OSC Network Basics |
> andrés did a nice video tutorial about communication between pd and > csound via osc: > http://www.youtube.com/watch?v=JX1C3TqP_9Y&list=PL3EE3219702D17FD3&index=12&feature=plpp > perhaps you find it useful. Very useful. Thanks to all for your suggestions! I think maybe now I've got a dim understanding of the basics. It turns out that the video showing how to connect Csound with Pd was based on an older version of Pd. The objects Andres used are now deprecated. It took me an hour or so to get my brains around the new requirements. (Pd-extended is in a transitional stage in which certain objects are included with the distribution but only become available if you use an import command.) What I still don't know a darn thing about is how to use OSC to connect two computers. Ethernet cable??? How would I determine the actual addresses of the two computers, and what syntax would I use? Sorry to be a pest, but I'd like to get it right. --Jim Aikin -- View this message in context: http://csound.1045644.n5.nabble.com/OSC-Network-Basics-tp4779868p4781263.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-09-08 07:42 |
From | Tarmo Johannes |
Subject | Re: [Csnd] Re: OSC Network Basics |
hello, you can send the osc messages to any computer in the network - it can be local network connected via router (can be wifi) or theoretically you can send the messages via internet to Australia, if you know the computers address - Ither it's name of IP address In linux you can find out the IP address with command ifconfig , I guess in OSX it is the same. In windows ipconfig in the command line Often computers have also name like tarmo-desktop, so you can use this instead (to find out type uname -a on command line). Or you can use a internet address of the server computer like johannes.homeip.net (then you must be sure that the OSC server port (like 9999 or whatever the server is seting) is open to calls coming form outside and server can read it. I have not tried the internet variant but the greatest thing is that at least in a local network you can send OSC messages from different computers to the server computer. For example you have different external controllers attached to different computers or every computer is doing some massive calculations and just one is synthesizing the sound (or video or whatever). greetings, tarmo On Thursday 08 September 2011 08:37:20 Jim Aikin wrote: > > andrés did a nice video tutorial about communication between pd and > > csound via osc: > > http://www.youtube.com/watch?v=JX1C3TqP_9Y&list=PL3EE3219702D17FD3&index=12&feature=plpp > > perhaps you find it useful. > > Very useful. Thanks to all for your suggestions! I think maybe now I've got > a dim understanding of the basics. > > It turns out that the video showing how to connect Csound with Pd was based > on an older version of Pd. The objects Andres used are now deprecated. It > took me an hour or so to get my brains around the new requirements. > (Pd-extended is in a transitional stage in which certain objects are > included with the distribution but only become available if you use an > import command.) > > What I still don't know a darn thing about is how to use OSC to connect two > computers. Ethernet cable??? How would I determine the actual addresses of > the two computers, and what syntax would I use? > > Sorry to be a pest, but I'd like to get it right. > > --Jim Aikin > > -- > View this message in context: http://csound.1045644.n5.nabble.com/OSC-Network-Basics-tp4779868p4781263.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-09-08 08:01 |
From | Francois PINOT |
Subject | [Csnd] Re: OSC Network Basics |
You can connect two computers directly via an ethernet crossover cable. Nowadays, a better solution is to use a local switch device with normal ethernet cables. If you have an internet connection, most modern routers yield this local switch function through four or five RJ45 connectors, and they often add wifi connection. Regards Francois 2011/9/8 Tarmo Johannes <tarmo@otsakool.edu.ee> hello, |
Date | 2011-09-08 08:04 |
From | Andreas Bergsland |
Subject | Re: [Csnd] Re: OSC Network Basics |
Hi, You can use ethernet cable or wireless. You may have to set your IP-adresses manually, but it usually works with the ones you already have. You may also have to adjust what you computers can share, for instance, I needed to turn on "Internet sharing" on my mac to make the connection. Use ipconfig in cmd (Win) or ifconfig in Terminal (OSX/Linux) to see the IP-address on the computer receiving the OSC messages (IP4, not IP6), then use that as the host argument in OSCsend. I usually check the connection first with the ping command in cmd/terminal. Remember to set your send and receive clients (csound?) to the same port. I used two ethernet cables via a switch to make the connection, but it should in principle not be necessary on new computers. If you go for wireless, you would want to create an ad-hoc network. When I connected my mac and win7PC, I found it was easiest to create in on OSX, and then join from the PC side. My experience is that wireless has perhaps a little more latency than ethernet cable. good luck, Andreas did a nice video tutorial about communication between pd and csound via osc: http://www.youtube.com/watch?v=JX1C3TqP_9Y&list=PL3EE3219702D17FD3&index=12&feature=plpp perhaps you find it useful. > Very useful. Thanks to all for your suggestions! I think maybe now I've got > a dim understanding of the basics. > > It turns out that the video showing how to connect Csound with Pd was based > on an older version of Pd. The objects Andres used are now deprecated. It > took me an hour or so to get my brains around the new requirements. > (Pd-extended is in a transitional stage in which certain objects are > included with the distribution but only become available if you use an > import command.) > > What I still don't know a darn thing about is how to use OSC to connect two > computers. Ethernet cable??? How would I determine the actual addresses of > the two computers, and what syntax would I use? > > Sorry to be a pest, but I'd like to get it right. > > --Jim Aikin > > -- > View this message in context: http://csound.1045644.n5.nabble.com/OSC-Network-Basics-tp4779868p4781263.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > |