This is an implementation of an audiovisual sonification piece based on the approximation of Pi, composed by Clarence Barlow.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ApproxPi_SingleWindow.cpp
ApproxPi_SingleWindow.h
PiApproximator.cpp
PiApproximator.h
PiSettings.h
README.md
SquareOsc.h
ofApproxPiSetupGUI.cpp
ofApproxPiSetupGUI.h
ofPiApproximator.cpp
ofPiApproximator.h

README.md

Approximating Pi

Approximating pi is a multichannel audio-visual piece written by Clarence Barlow. This repo is an implementation of this piece for a multichannel playback of arbitrary length and up to 16 channels.

The current implementation is written for Openframeworks on OSX10.11.

Usage

Clone this repo into the src directory of a fresh openframeworks project. Make sure the openframeworks project has the following addons.

Add the follwing assets to the bin/data folder:

Modify the main.cpp file to this:

#include "ofMain.h"
#include "ApproximatingPi/ApproxPi_SingleWindow.h"

int main( ){
    ofSetupOpenGL(ApproxPi_SingleWindow::defaultWindowWidth(), ApproxPi_SingleWindow::defaultWindowHeight(), OF_WINDOW);
    ApproxPi_SingleWindow* app = new ApproxPi_SingleWindow();
    ofRunApp(app);
}

Note: This app also requires that the assets are bundled within the Contents/Resources/data folder of the built app. You can either move it manually, or use a script to do this automatically on every build.

In XCode, you would typically add this line to the end of the run script within the Build Phases tab to achieve this.

cp -r bin/data "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources";

Authors:

-Akshay Cadambi (akshay19.92 at g-mail dot com)
-Matthias Wagner (Github: matzewagner)
For: Clarence Barlow.
Last performed: March 28 2016 at SBCAST, Santa Barbara (6 Channel, 2 hour version)