From 0d2a4d810fdc7ecbe67de784d4eb901cd5699c38 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Sun, 1 Aug 2004 20:51:11 +0000 Subject: some more ugens svn path=/trunk/externals/tb/; revision=1902 --- sc4pd/source/support.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sc4pd/source/support.hpp') 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()) -- cgit v1.2.1