Node.js to Csound
Date | 2015-09-08 21:59 |
From | Richard |
Subject | Node.js to Csound |
I understand that it is not so easy/impossible to interface from Node.js to Csound directly, but there is another way. A package called zerorpc can be the glue between Node.js and Python and from there it is easy to interface to csound via the API. In a simple diagram: Node.js<-->zerorpc<-->Python API<--> Csound Node.js is great for creating a powerful webserver (serving a page with sliders, meters and stuff) and this should allow for two-way communication with Csound. Hope to get something working soon. Richard ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-09 01:44 |
From | Michael Gogins |
Subject | Re: Node.js to Csound |
Attachments | Screenshot 2015-09-08 20.41.55.png None None |
Csound works just fine in NW.js (used to be called Node-webkit), which is based on node.js. csound.node is distributed in binary form with the Windows installer for Csound, and is easy to set up in NW.js.
NW.js serves Web pages to the user from a local directory. If you need Csound to run on a Web server with node.js or io.js, you can probably adapt the build procedure that I created for csound.node to work for node.js. Screen shot of Csound editor and piece running in NW.js is attached. Don't re-invent the wheel unless that is the kind of thing that you like to do. Building csound.node on Linux is very easy. Instructions are in the files related to csound.node examples in the Csound git repository. ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Sep 8, 2015 at 4:59 PM, Richard <zappfinger@gmail.com> wrote: > I understand that it is not so easy/impossible to interface from Node.js > to Csound directly, but there is another way. > A package called zerorpc can be the glue between Node.js and Python and > from there it is easy to interface to csound via the API. > In a simple diagram: > > Node.js<-->zerorpc<-->Python API<--> Csound > > Node.js is great for creating a powerful webserver (serving a page with > sliders, meters and stuff) and this should allow for two-way > communication with Csound. > Hope to get something working soon. > > Richard > > ------------------------------------------------------------------------------ > _______________________________________________ > Csound-users mailing list > Csound-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-users > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here |