Csound Csound-dev Csound-tekno Search About

[Csnd] a new way of interfacing to Csound: via Pyro!

Date2013-12-04 19:47
Fromzappfinger
Subject[Csnd] a new way of interfacing to Csound: via Pyro!
Here's a first working example of how to do it. This one is without a so
called name server.

First install Pyro4. http://pythonhosted.org/Pyro4/

Start the PYRCsound.py server first.
Copy the 'uri' (terminal out of the server)
Then start the CsClient.py, and paste the uri 

Watch and hear...

Client and server are now running locally, but they could just as well be
connected via a network.
With a name server they will be able to find each other, no uri needed. I'll
make an example of that soon.

PYRCsound.py
  
CsClient.py   

Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/a-new-way-of-interfacing-to-Csound-via-Pyro-tp5730557.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-12-04 19:52
FromDominic Melville
SubjectRe: [Csnd] a new way of interfacing to Csound: via Pyro!
Interesting work. I'll have a play with it over the weekend for sure. Thanks for sharing. 

Dominic 

On Wednesday, December 4, 2013, zappfinger wrote:
Here's a first working example of how to do it. This one is without a so
called name server.

First install Pyro4. http://pythonhosted.org/Pyro4/

Start the PYRCsound.py server first.
Copy the 'uri' (terminal out of the server)
Then start the CsClient.py, and paste the uri

Watch and hear...

Client and server are now running locally, but they could just as well be
connected via a network.
With a name server they will be able to find each other, no uri needed. I'll
make an example of that soon.

PYRCsound.py
<http://csound.1045644.n5.nabble.com/file/n5730557/PYRCsound.py>
CsClient.py <http://csound.1045644.n5.nabble.com/file/n5730557/CsClient.py>

Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/a-new-way-of-interfacing-to-Csound-via-Pyro-tp5730557.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2013-12-04 22:36
Fromzappfinger
Subject[Csnd] Re: a new way of interfacing to Csound: via Pyro!
Here's the second example, this time with a name server.
Now the client and server can find each other with having to know the uri,
even if they are on different machines.
You typically start one name server on one of your computers like this:

python -m Pyro4.naming -n x.x.x.x -p 8888

where x.x.x.x is the ip address of the computer where the name server
resides. -p is a port number.

Here are the versions using the name server, notice the minimal changes.

PYRCsoundNS.py
  
CsClientNS.py
  

Richard 
PS: I highly recommend studying the Pyro4 website!



--
View this message in context: http://csound.1045644.n5.nabble.com/a-new-way-of-interfacing-to-Csound-via-Pyro-tp5730557p5730573.html
Sent from the Csound - General mailing list archive at Nabble.com.