diff options
author | Tim Blechmann <timblech@users.sourceforge.net> | 2004-08-01 20:51:11 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:11:55 +0200 |
commit | 0d2a4d810fdc7ecbe67de784d4eb901cd5699c38 (patch) | |
tree | 83f02e75faab87ad984ca187adc13c99d6b5fc7e /sc4pd/source/support.hpp | |
parent | 732d85194f69cc1d6b72d67e48211799cd5583e3 (diff) |
some more ugens
svn path=/trunk/externals/tb/; revision=1902
Diffstat (limited to 'sc4pd/source/support.hpp')
-rw-r--r-- | sc4pd/source/support.hpp | 8 |
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()) |