Re: trying to control csound with pyro
Irmen de Jong <[email protected]> Sun, 08 Dec 2013 11:19:33 +0100
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
On 4-12-2013 19:05, Richard van Bemmelen wrote: > client code: > > cs.score(sco2) > > server code: > > def score(self, scor): > self.csPerfThread.InputMessage(scor) > > > I got it working by specifically changing the InputMessage argument to a string, like: > self.csPerfThread.InputMessage(str(scor)) > > but why do I have to do that? Probably because you're not actually passing a string from the client to the server. What is the exact type of 'sco2' in your client? You should inspect the type of the 'scor' parameter on either side. It will probably print something that is different from str. Irmen ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk