chriskiefer/OpenFrameworks-Supercollider-Host — Issue #1: Placement of the project
Author: mlunoe
Created: 2011-10-22 15:28:44+00:00
State: open

This is intended as an explanatory post for noobies in openFrameworks, SuperCollider and Processing as I didn't find much help at any of the following pages:
http://www.erase.net/projects/ofxSuperCollider/
http://www.openframeworks.cc/
http://processing.org/

First of all @chriskiefer: Thank you for your contribution. It made some things a lot easier for me. However, I still had some trouble getting started with your project as I kept getting errors for not referencing files correctly. So here's a guide to make it work on mac, so others will not make the same mistake as I did. Feel free to comment and correct the guide and/or contribute with guides to other operating systems.

SuperCollider:

1. Get SuperCollider at http://supercollider.sourceforge.net/downloads/ and install.
2. Play around with SuperCollider. I found this workshop helpful: http://www.informatics.sussex.ac.uk/users/nc81/courses/cm1/workshop.html

OpenFrameworks with chriskiefer's OpenFrameworks-Supercollider-Host:

1. Get the openFrameworks at http://www.openframeworks.cc/download
2. Get the Maxilian project at https://github.com/micknoise/Maximilian and unzip
3. Copy the "ofxMaxim" folder from micknoise-Maximilian-XXXXXXX/ofxMaxim/ to openFrameworks/addons/
4. Get the chriskiefer project at under the code tab (here's a direct link for you: https://github.com/chriskiefer/OpenFrameworks-Supercollider-Host) and unzip
5. Copy the whole "chriskiefer-OpenFrameworks-Supercollider-Host-XXXXXXX" folder into openFrameworks/addons/
6. Open the "schostExample.xcodeproj" under openFrameworks/addons/chriskiefer-OpenFrameworks-Supercollider-Host-XXXXXXX/
7. (Turn the volume down and) press "Build and Run".

Make them work together:

1. When the OpenFrameworks-Supercollider-Host project is running open SuperCollider.app-
2. Press the "boot" button on the localhost server.
3. Copy the code provided by chiskiefer (see below) and paste it into the SuperCollider console.
u = Server(\scau, NetAddr("127.0.0.1", 9989));
u.serverRunning = true;
u.ping(10);
//high pass the input
z = { HPF.ar(AudioIn.ar([1,2]), 1000) }.play(u);
z.free;
4. Run each line (except the last one!) by placing the curser at each line and pressing Shift+Enter. The white noise provided by the OpenFrameworks-Supercollider-Host should change when Shift+Enter is pressed on line "z = { HPF.ar(AudioIn.ar([1,2]), 1000) }.play(u)"
5. Press Shift+Enter at the last line "z.free" to restore the original sound.
6. Go to the OpenFrameworks-Supercollider-Host project and hit Esc to kill the white noise.

Hope this was helpful!

/mlunoe