ofxJavascript
ofxJavascript is an addon for openframeworks that allows applications to embed and execute Javascript with Mozilla "Spidermonkey" engine (https://developer.mozilla.org/fr/docs/SpiderMonkey). It was originally developped back in August 2009 and has not really evolved since then, although it was used in recent projects where scripting allowed rapid prototyping.
Issues
- Doesn't work with project generator
Links
Setup a new project
[X]
Doesn't work with project generator[X]
Create an empty project[ ]
Add depndencies from theINSTALL.XML
file (https://github.com/v3ga/ofxJavascript/blob/master/install.xml)
ofxSuperCollider
In this way we have to store the Synths in SuperCollider server and use the openFrameworks application as an interpreter.
Store SynthDefs in SuperCollider
SynthDef(\playbuf_1, { |bufnum = 0, outbus = 0, amp = 0.5, loop = 0, pan = 0, rate = 1.0| var data; data = PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum) * rate, 0, 0, loop); FreeSelfWhenDone.kr(data); Out.ar(outbus, Pan2.ar(data, pan, amp)); }).store;