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

  1. [X] Doesn't work with project generator
  2. [X] Create an empty project
  3. [ ] Add depndencies from the INSTALL.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;
  • openFrameworks wrappers for SuperCollider server control 1
  • Solving issue from oF forum2
  • other usefull links3

Προσθήκη addon σε υπάρχων project

Posted on .
blog comments powered by Disqus