aboutsummaryrefslogtreecommitdiff
path: root/sc4pd/source/support.cpp
diff options
context:
space:
mode:
authorTim Blechmann <timblech@users.sourceforge.net>2004-09-09 08:45:18 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:11:57 +0200
commit8e34dec617b67c4b8d8928188d175f850d6a69c4 (patch)
tree8a991c190bba8ee387e33f99830cbc88bb3dd8b0 /sc4pd/source/support.cpp
parent1a1d31d95b241dff59a11311b70be603742eeb32 (diff)
lfdnoises and interpolating vector/scalar operations
svn path=/trunk/externals/tb/; revision=2021
Diffstat (limited to 'sc4pd/source/support.cpp')
-rw-r--r--sc4pd/source/support.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/sc4pd/source/support.cpp b/sc4pd/source/support.cpp
index fd87c86..077ea45 100644
--- a/sc4pd/source/support.cpp
+++ b/sc4pd/source/support.cpp
@@ -77,16 +77,20 @@ bool sc_ar(flext::AtomList a)
return false;
}
-// macros to put rgen state in registers
-#define RGET \
- uint32 s1 = rgen.s1; \
- uint32 s2 = rgen.s2; \
- uint32 s3 = rgen.s3;
-
-#define RPUT \
- rgen.s1 = s1; \
- rgen.s2 = s2; \
- rgen.s3 = s3;
+bool sc_inv(flext::AtomList a)
+{
+ for (int i = 0; i!=a.Count();++i)
+ {
+ if ( flext::IsSymbol(a[i]) )
+ {
+ const char * teststring;
+ teststring = flext::GetString(a[i]);
+ if((strcmp(teststring,"inv"))==0)
+ return true;
+ }
+ }
+ return false;
+}
int32 timeseed()
{