[Csnd] Csound starting it's own GUI with OSC sliders in a browser

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Csnd] Csound starting it's own GUI with OSC sliders in a browser

zappfinger

Using p5js libraries, this was a fun thing to do and it works:

My webOSC.csd runs a python program, via:

pyinit
pyexeci "startit.py"

Content of startit.py:

#! /usr/bin/env python
import subprocess, time
import webbrowser, os

print "starting node bridge.js"
subprocess.Popen('node ./bridge.js', shell=True)
time.sleep(2)
print "starting webpage"
webbrowser.open('file://'+ "/Users/richard/p5/p5js-osc/p5test/public/index.html")

This first starts the nodejs bridge program for handling ws/OSC conversion, than launches the index html page in the browser.

The html loads the sketch.js script that has two p5 sliders sending 'OSC' data...

Richard


Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here