Skip to content
cppsketch for openFrameworks - see here: https://github.com/elf-audio/cppsketch
C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example-audio you can now live code with graphics and audio Nov 18, 2019
example-simple
src
.gitignore
LICENSE
README.md

README.md

ofxCppSketch

This is an openFrameworks wrapper for cppsketch, which allows you to auto-recompile just your ofApp without recompiling the whole project. The point of this is so that you can more easily sketch small ideas without having to wait too long to see the results of tweaking numbers.

This only works on the mac for now, only tested with Xcode 11. Click the image below to see a video of how to set it up.

Video of how to set up ofxCppSketch

HOW TO USE

  1. Use project generator to add ofxCppSketch or drag its folder into an empty project

  2. Change your main.cpp to #include "ofxCppSketch.h"

  3. change the line ofRunApp(new ofApp()); to ofRunApp(new ofxCppSketch("ofApp", __FILE__));

  4. Go into project build settings, find "Dead code stripping" - change it to NO

Now, every time you save ofApp.h or ofApp.cpp whilst your app is running, it will recompile in the background - errors are displayed in the xcode console if compilation fails.

EXAMPLES

There are two examples, "simple" and "audio" - "simple" is the most basic setup, "audio" is an example of doing live coding with both graphics and audio.

ADDONS

Addons should work as long as they're listed in the addons.make file in the project folder. ofxCppSketch reads this to create header search paths for compilation.

You can’t perform that action at this time.