From bc8d2ebccb48531c7d32d63c608561e495cbd7a3 Mon Sep 17 00:00:00 2001 From: mick grierson Date: Mon, 29 Jun 2015 16:01:29 +0100 Subject: updating examples --- .../maxiAtomSynthesis/src/pyOSCDebug.cpp | 45 ---------------------- 1 file changed, 45 deletions(-) delete mode 100644 ofxMaxim/ofxMaximExamples007OSX/maxiAtomSynthesis/src/pyOSCDebug.cpp (limited to 'ofxMaxim/ofxMaximExamples007OSX/maxiAtomSynthesis/src/pyOSCDebug.cpp') diff --git a/ofxMaxim/ofxMaximExamples007OSX/maxiAtomSynthesis/src/pyOSCDebug.cpp b/ofxMaxim/ofxMaximExamples007OSX/maxiAtomSynthesis/src/pyOSCDebug.cpp deleted file mode 100644 index 3af8084..0000000 --- a/ofxMaxim/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