From 090d3337fc0eca232ea1cc6ef5aa4f3c7d523e9f Mon Sep 17 00:00:00 2001 From: Chris Kiefer Date: Thu, 1 Mar 2012 22:50:08 +0000 Subject: 512.f --- ofxMaxim/ofxMaxim/libs/maxiAtoms.cpp | 3 ++- ofxMaxim/ofxMaxim/libs/maxiAtoms.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'ofxMaxim') diff --git a/ofxMaxim/ofxMaxim/libs/maxiAtoms.cpp b/ofxMaxim/ofxMaxim/libs/maxiAtoms.cpp index d653d6e..cdc8a3b 100644 --- a/ofxMaxim/ofxMaxim/libs/maxiAtoms.cpp +++ b/ofxMaxim/ofxMaxim/libs/maxiAtoms.cpp @@ -13,6 +13,7 @@ #include "sineTable.h" #ifdef __APPLE_CC__ #include +#warning ofxMaxim: Please link against the accelerate framework. #endif //#include "tinyxml.h" @@ -68,7 +69,7 @@ inline void maxiCollider::createGabor(flArr &atom, const float freq, const float float waveTableLength = 512; vDSP_vsmul(&interpConstants[0], 1, &waveTableLength, &interpConstants[0], 1, length); for(uint i=0; i < length; i++) { - interpConstants[i] = fmod(interpConstants[i], 512.0); + interpConstants[i] = fmod(interpConstants[i], 512.0f); } vDSP_vlint(sineBuffer2, &interpConstants[0], 1, &sine[0], 1, length, 514); vDSP_vmul(&atom[0], 1, &sine[0], 1, &atom[0], 1, length); diff --git a/ofxMaxim/ofxMaxim/libs/maxiAtoms.h b/ofxMaxim/ofxMaxim/libs/maxiAtoms.h index ad682e0..252b770 100644 --- a/ofxMaxim/ofxMaxim/libs/maxiAtoms.h +++ b/ofxMaxim/ofxMaxim/libs/maxiAtoms.h @@ -74,7 +74,7 @@ public: unsigned int numSamples; unsigned int sampleRate; maxiAtomBookData atoms; - //commented out for now, need to resolve tinyxml linker issues + //commented out for now, need to resolve tinyxml linker issues - we need tinyxml in the distrib, but it clashes if you also import ofxXmlSettings // static bool loadMPTKXmlBook(string filename, maxiAtomBook &book); }; -- cgit v1.3