aboutsummaryrefslogtreecommitdiff
path: root/sc4pd/source/support.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'sc4pd/source/support.hpp')
-rw-r--r--sc4pd/source/support.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc4pd/source/support.hpp b/sc4pd/source/support.hpp
index d05497e..bb5537a 100644
--- a/sc4pd/source/support.hpp
+++ b/sc4pd/source/support.hpp
@@ -93,3 +93,11 @@ WARRANTIES, see the file, "license.txt," in this distribution.
V (thisType::*v_##NAME)(I n,S *const *invecs,S *const *outvecs)
#define SIGFUN(FUN) &thisType::FUN
+
+
+/* this macro has to be redefined to work with flext */
+
+// calculate a slope for control rate interpolation to audio rate.
+//#define CALCSLOPE(next,prev) ((next - prev) * unit->mRate->mSlopeFactor)
+#undef CALCSLOPE
+#define CALCSLOPE(next,prev) ((next - prev) * 1/Blocksize())