From 1100fc8c462d9a17731340596e7d9c07adb3fe54 Mon Sep 17 00:00:00 2001 From: mick grierson Date: Mon, 27 Jul 2015 01:07:41 +0100 Subject: More major repair work. New OS X 10.10 SDK example project. New project structure. New Tutorials / Examples. --- .../maxiAtomSynthesis/src/pyOSCDebug.cpp | 45 ---------------------- 1 file changed, 45 deletions(-) delete mode 100644 ofxMaxim/examples/OSX/ofxMaximExamples007OSX/maxiAtomSynthesis/src/pyOSCDebug.cpp (limited to 'ofxMaxim/examples/OSX/ofxMaximExamples007OSX/maxiAtomSynthesis/src/pyOSCDebug.cpp') diff --git a/ofxMaxim/examples/OSX/ofxMaximExamples007OSX/maxiAtomSynthesis/src/pyOSCDebug.cpp b/ofxMaxim/examples/OSX/ofxMaximExamples007OSX/maxiAtomSynthesis/src/pyOSCDebug.cpp deleted file mode 100644 index 3af8084..0000000 --- a/ofxMaxim/examples/OSX/ofxMaximExamples007OSX/maxiAtomSynthesis/src/pyOSCDebug.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * pyOSCDebug.cpp - * bastardPop - * - * Created by Chris on 25/10/2011. - * Copyright 2011 Goldsmiths Creative Computing. All rights reserved. - * - */ - -#include "pyOSCDebug.h" - -pyOSCDebug::pyOSCDebug() { - ready = false; -} - -void pyOSCDebug::setup(string host, int port) { - osc.setup(host, port); - ready = true; -} - -void pyOSCDebug::clear() { - if (ready) { - ofxOscMessage m; - m.setAddress("/clear"); - osc.sendMessage(m); - } -} - - -void pyOSCDebug::send(vector data) { - send(&(data[0]), data.size()); -} - -void pyOSCDebug::send(float *data, unsigned int count) { - if (ready) { - ofxOscMessage m; - m.setAddress("/data"); - for(int i=0; i < count; i++) { - m.addFloatArg(data[i]); - } - osc.sendMessage(m); - } -} - - -- cgit v1.3