aboutsummaryrefslogtreecommitdiff
path: root/sc4pd/source/support.hpp
diff options
context:
space:
mode:
authorTim Blechmann <timblech@users.sourceforge.net>2004-08-01 19:00:30 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:11:55 +0200
commit732d85194f69cc1d6b72d67e48211799cd5583e3 (patch)
tree444d3a91aa4bd6bf6dbb3c6d3a6d9d4d0757b3ed /sc4pd/source/support.hpp
parent5a6affc4fcaaa5dbac6f29c6638084c77146c8f5 (diff)
checkin: lfpulse, lfsaw
svn path=/trunk/externals/tb/; revision=1901
Diffstat (limited to 'sc4pd/source/support.hpp')
-rw-r--r--sc4pd/source/support.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/sc4pd/source/support.hpp b/sc4pd/source/support.hpp
index 79faff5..d05497e 100644
--- a/sc4pd/source/support.hpp
+++ b/sc4pd/source/support.hpp
@@ -64,3 +64,32 @@ bool sc_ar(flext::AtomList a);
rgen.s3 = s3;
int32 timeseed();
+
+
+/* this is copied from thomas grill's xsample:
+xsample - extended sample objects for Max/MSP and pd (pure data)
+
+Copyright (c) 2001-2004 Thomas Grill (xovo@gmx.net)
+For information on usage and redistribution, and for a DISCLAIMER OF ALL
+WARRANTIES, see the file, "license.txt," in this distribution.
+*/
+
+#define F float
+#define D double
+#define I int
+#define L long
+#define C char
+#define V void
+#define BL bool
+#define S t_sample
+
+#define SETSIGFUN(VAR,FUN) v_##VAR = FUN
+
+#define DEFSIGFUN(NAME) V NAME(I n,S *const *in,S *const *out)
+
+#define DEFSIGCALL(NAME) \
+ inline V NAME(I n,S *const *in,S *const *out) \
+ { (this->*v_##NAME)(n,in,out); } \
+ V (thisType::*v_##NAME)(I n,S *const *invecs,S *const *outvecs)
+
+#define SIGFUN(FUN) &thisType::FUN