aboutsummaryrefslogtreecommitdiff
path: root/MSPd.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-10-04 22:24:37 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-10-04 22:24:37 +0000
commit84231a000a4f06e34efa0d3700377dd3cc447e0b (patch)
tree9cec4db39062de619d61c9197fa7dfc5708bc059 /MSPd.h
parentb418fb91e7bb45d7b5f1eb8b19703441ae94eb13 (diff)
took FFTease2.5_Pd_OSX.zip and unpacked it into a Library Template layout
original source: http://www.somasa.qub.ac.uk/~elyon/LyonSoftware/MaxMSP/FFTease/FFTease2.5_Pd_OSX.zip svn path=/trunk/externals/fftease/; revision=16331
Diffstat (limited to 'MSPd.h')
-rw-r--r--MSPd.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/MSPd.h b/MSPd.h
new file mode 100644
index 0000000..dbf689c
--- /dev/null
+++ b/MSPd.h
@@ -0,0 +1,38 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <math.h>
+#include <time.h>
+
+/* choose your poison */
+
+#define MSP (0)
+#define PD (!MSP)
+/* for compiling under XP */
+
+
+#ifndef PIOVERTWO
+#define PIOVERTWO 1.5707963268
+#define TWOPI 6.2831853072
+#endif
+
+#if MSP
+#include "ext.h"
+#include "z_dsp.h"
+#include "buffer.h"
+#include "ext_obex.h"
+#define t_floatarg double
+#endif
+
+#if PD
+#include "m_pd.h"
+#define t_floatarg float
+#endif
+
+/* because Max and Pd have different ideas of what A_FLOAT is, use t_floatarg
+to force consistency. Otherwise functions that look good will fail on some
+hardware. Also note that Pd messages cannot accept arguments of type A_LONG. */
+
+
+
+
+