Csound Csound-dev Csound-tekno Search About

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

Date2018-06-23 13:46
FromRichard
Subject[Csnd] Csound starting it's own GUI with OSC sliders in a browser

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