ProcessingJS and Csound PNaCl Example
This is an example of using ProcessingJS and Csound PNaCl to create a fully client-side browser based music application. The Processing PDE sketch file is run by ProcessingJS, and Csound ORC code is run by Csound PNaCl.
From there, the generated index.html file was taken as a starting point and moved to the root of this project's repository. It was modified to add csound.js, which brings in Csound PNaCl into the project. The Processing sketch was then modified to add a bindCsound() function which is passed in from the web page. Once Processing has the Csound object, it can call methods to send notes and values over Csound's control channels.
To run this application, it requires that the page be loaded from a URL and not from the file system. An easy way to serve up the page locally is use Python. To do this, go into the project's root folder and enter:
python -m SimpleHTTPServer 8080
Afterwards, load the following URL in Chrome/Chromium/ChromeOS browsers: