NB an interface to NodeBox - http://nodebox.net


Setup - installation


Download NodeBox from


http://nodebox.net/code/index.php/Download


and install it in the usual way; by default, it unpacks in /Applications.


If you've installed NB as a quark, all NB-related SuperCollider files, except perhaps for console.py  (included with the NB quark, courtesy of NodeBox.net, through an MIT license), are most likely where they should be.


If you want to install NB manually, NB.sc and CmdString.sc and CmdStringPlusString.sc are class files; put them where SuperCollider can read them as such. Put NB.html (this document) where SuperCollider can read it as a help file. Put console.py in the SuperCollider folder.


In all cases, re-compile SuperCollider (Command-k) after installing quarks.


Four tests to demonstrate basic NB/NodeBox functionality


0. Evaluate the next line of code. The NodeBox application, with code in a top right window, should appear.


NB.test0_NodeBox;


Use command-r (in the NodeBox application) to render code to image.


1. Evaluate the next line of code. An image should display in Preview.


NB.test1_imageDisplay;


2. Evaluate the next line. The NodeBox application, with code to render a movie, should appear.


NB.test2_createMovieCode;


Use command-r (in NodeBox) to render the movie. Rendering will likely take more than few seconds. The following line of SuperCollider code will display the movie (but only after rendering is complete).


"open /tmp/test2_createMovieCode.mov".systemCmd;


3. Evaluate the next line. NodeBox will render files in the five image formats it supports.


NB.test3_fileFormats;


The five image files should all open in Preview.