diff options
author | Tim Blechmann <timblech@users.sourceforge.net> | 2004-08-02 19:18:22 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:11:55 +0200 |
commit | 5e1268fb9920b248ee377797b130605f669c6dee (patch) | |
tree | 7ec1b4df27755433675d3f5dfb095d6eb8d1e8b3 | |
parent | 0d2a4d810fdc7ecbe67de784d4eb901cd5699c38 (diff) |
main header file
svn path=/trunk/externals/tb/; revision=1903
47 files changed, 45 insertions, 352 deletions
diff --git a/sc4pd/source/BrownNoise.cpp b/sc4pd/source/BrownNoise.cpp index b9bc138..ad8a275 100644 --- a/sc4pd/source/BrownNoise.cpp +++ b/sc4pd/source/BrownNoise.cpp @@ -35,15 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif - +#include "sc4pd.hpp" /* ------------------------ BrownNoise~ -------------------------------*/ diff --git a/sc4pd/source/ClipNoise.cpp b/sc4pd/source/ClipNoise.cpp index 761fbb6..32d8c94 100644 --- a/sc4pd/source/ClipNoise.cpp +++ b/sc4pd/source/ClipNoise.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ ClipNoise~ -------------------------------*/ diff --git a/sc4pd/source/CoinGate.cpp b/sc4pd/source/CoinGate.cpp index 27961c2..fc47aca 100644 --- a/sc4pd/source/CoinGate.cpp +++ b/sc4pd/source/CoinGate.cpp @@ -35,15 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif - +#include "sc4pd.hpp" /* ------------------------ CoinGate ---------------------------------*/ diff --git a/sc4pd/source/Crackle.cpp b/sc4pd/source/Crackle.cpp index 0bc9ae0..a013a1a 100644 --- a/sc4pd/source/Crackle.cpp +++ b/sc4pd/source/Crackle.cpp @@ -35,15 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif - +#include "sc4pd.hpp" /* ------------------------ Crackle~ -------------------------------*/ diff --git a/sc4pd/source/Decay.cpp b/sc4pd/source/Decay.cpp index 95bc22e..38112aa 100644 --- a/sc4pd/source/Decay.cpp +++ b/sc4pd/source/Decay.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ Decay~ -----------------------------*/ diff --git a/sc4pd/source/Dust.cpp b/sc4pd/source/Dust.cpp index 0acd45f..c44572e 100644 --- a/sc4pd/source/Dust.cpp +++ b/sc4pd/source/Dust.cpp @@ -34,13 +34,7 @@ Coded while listening to: Assif Tsahar & Tatsuya Nakatani: Come Sunday */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ Dust~ -------------------------------------*/ diff --git a/sc4pd/source/Dust2.cpp b/sc4pd/source/Dust2.cpp index cb5d509..19013ee 100644 --- a/sc4pd/source/Dust2.cpp +++ b/sc4pd/source/Dust2.cpp @@ -35,13 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ Dust2~ -------------------------------------*/ diff --git a/sc4pd/source/ExpRand.cpp b/sc4pd/source/ExpRand.cpp index 3b17aef..9f1f4a7 100644 --- a/sc4pd/source/ExpRand.cpp +++ b/sc4pd/source/ExpRand.cpp @@ -35,15 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif - +#include "sc4pd.hpp" /* ------------------------ ExpRand~ -------------------------------*/ diff --git a/sc4pd/source/GrayNoise.cpp b/sc4pd/source/GrayNoise.cpp index 6c76217..4fa7b23 100644 --- a/sc4pd/source/GrayNoise.cpp +++ b/sc4pd/source/GrayNoise.cpp @@ -35,15 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif - +#include "sc4pd.hpp" /* ------------------------ GrayNoise~ -------------------------------*/ diff --git a/sc4pd/source/Hasher.cpp b/sc4pd/source/Hasher.cpp index 9fc2f48..8c43c8c 100644 --- a/sc4pd/source/Hasher.cpp +++ b/sc4pd/source/Hasher.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> #include "support.hpp" -#include "SC_PlugIn.h" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif /* ------------------------ Hasher~ -----------------------------------*/ diff --git a/sc4pd/source/IRand.cpp b/sc4pd/source/IRand.cpp index 095df92..18cf125 100644 --- a/sc4pd/source/IRand.cpp +++ b/sc4pd/source/IRand.cpp @@ -35,15 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif - +#include "sc4pd.hpp" /* ------------------------ IRand~ -------------------------------*/ diff --git a/sc4pd/source/Impulse.cpp b/sc4pd/source/Impulse.cpp index 277ad34..dbb07e2 100644 --- a/sc4pd/source/Impulse.cpp +++ b/sc4pd/source/Impulse.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* todo: implement phase offset as in sc3 /* ------------------------ Impulse~ -------------------------------*/ diff --git a/sc4pd/source/Integrator.cpp b/sc4pd/source/Integrator.cpp index 75bb350..97d2766 100644 --- a/sc4pd/source/Integrator.cpp +++ b/sc4pd/source/Integrator.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ Integrator~ -----------------------------*/ diff --git a/sc4pd/source/LFClipNoise.cpp b/sc4pd/source/LFClipNoise.cpp index 18f95ee..60f5049 100644 --- a/sc4pd/source/LFClipNoise.cpp +++ b/sc4pd/source/LFClipNoise.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ LFClipNoise~ -------------------------------*/ diff --git a/sc4pd/source/LFNoise0.cpp b/sc4pd/source/LFNoise0.cpp index c0f8abd..a548e9e 100644 --- a/sc4pd/source/LFNoise0.cpp +++ b/sc4pd/source/LFNoise0.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ LFNoise0~ -------------------------------*/ diff --git a/sc4pd/source/LFNoise1.cpp b/sc4pd/source/LFNoise1.cpp index e48d3bb..d80b55b 100644 --- a/sc4pd/source/LFNoise1.cpp +++ b/sc4pd/source/LFNoise1.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ LFNoise1~ -------------------------------*/ diff --git a/sc4pd/source/LFNoise2.cpp b/sc4pd/source/LFNoise2.cpp index 71aff7d..891a0f3 100644 --- a/sc4pd/source/LFNoise2.cpp +++ b/sc4pd/source/LFNoise2.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ LFNoise2~ -------------------------------*/ diff --git a/sc4pd/source/LFPulse.cpp b/sc4pd/source/LFPulse.cpp index 76abc2c..020fb57 100644 --- a/sc4pd/source/LFPulse.cpp +++ b/sc4pd/source/LFPulse.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ LFPulse~ -------------------------------*/ diff --git a/sc4pd/source/LFSaw.cpp b/sc4pd/source/LFSaw.cpp index 358cb2f..c442a89 100644 --- a/sc4pd/source/LFSaw.cpp +++ b/sc4pd/source/LFSaw.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ LFSaw~ -------------------------------*/ diff --git a/sc4pd/source/Latoocarfian.cpp b/sc4pd/source/Latoocarfian.cpp index c509711..3fdb0b2 100644 --- a/sc4pd/source/Latoocarfian.cpp +++ b/sc4pd/source/Latoocarfian.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ Latoocarfian~ -------------------------------*/ diff --git a/sc4pd/source/LinCong.cpp b/sc4pd/source/LinCong.cpp index 0da0df7..4f0b327 100644 --- a/sc4pd/source/LinCong.cpp +++ b/sc4pd/source/LinCong.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ LinCong~ -------------------------------*/ diff --git a/sc4pd/source/LinRand.cpp b/sc4pd/source/LinRand.cpp index 3ebc458..f5acb00 100644 --- a/sc4pd/source/LinRand.cpp +++ b/sc4pd/source/LinRand.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ LinRand~ -------------------------------*/ diff --git a/sc4pd/source/Logistic.cpp b/sc4pd/source/Logistic.cpp index 9a475e0..89c6c2e 100644 --- a/sc4pd/source/Logistic.cpp +++ b/sc4pd/source/Logistic.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ Logistic~ -------------------------------*/ diff --git a/sc4pd/source/MantissaMask.cpp b/sc4pd/source/MantissaMask.cpp index d3a867d..dfbf605 100644 --- a/sc4pd/source/MantissaMask.cpp +++ b/sc4pd/source/MantissaMask.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> #include "support.hpp" -#include "SC_PlugIn.h" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif /* ------------------------ MantissaMask~ -----------------------------*/ diff --git a/sc4pd/source/Median.cpp b/sc4pd/source/Median.cpp index 77b0a5d..f15ce63 100644 --- a/sc4pd/source/Median.cpp +++ b/sc4pd/source/Median.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ Median(~) ---------------------------------*/ diff --git a/sc4pd/source/NRand.cpp b/sc4pd/source/NRand.cpp index 9921c82..84a4374 100644 --- a/sc4pd/source/NRand.cpp +++ b/sc4pd/source/NRand.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ NRand~ -------------------------------*/ diff --git a/sc4pd/source/PinkNoise.cpp b/sc4pd/source/PinkNoise.cpp index 9a1c5bc..513d02a 100644 --- a/sc4pd/source/PinkNoise.cpp +++ b/sc4pd/source/PinkNoise.cpp @@ -35,15 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif - +#include "sc4pd.hpp" /* ------------------------ PinkNoise~ -------------------------------*/ diff --git a/sc4pd/source/Rand.cpp b/sc4pd/source/Rand.cpp index 243cc5e..791db68 100644 --- a/sc4pd/source/Rand.cpp +++ b/sc4pd/source/Rand.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ Rand~ -------------------------------*/ diff --git a/sc4pd/source/TExpRand.cpp b/sc4pd/source/TExpRand.cpp index b7ee16e..6e2b1c6 100644 --- a/sc4pd/source/TExpRand.cpp +++ b/sc4pd/source/TExpRand.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ TExpRand~ -------------------------------*/ diff --git a/sc4pd/source/TIRand.cpp b/sc4pd/source/TIRand.cpp index 93fdd09..1995e46 100644 --- a/sc4pd/source/TIRand.cpp +++ b/sc4pd/source/TIRand.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ TIRand~ -------------------------------*/ diff --git a/sc4pd/source/TRand.cpp b/sc4pd/source/TRand.cpp index b18704f..d761dc4 100644 --- a/sc4pd/source/TRand.cpp +++ b/sc4pd/source/TRand.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ TRand~ -------------------------------*/ diff --git a/sc4pd/source/WhiteNoise.cpp b/sc4pd/source/WhiteNoise.cpp index 6d308db..779cb2f 100644 --- a/sc4pd/source/WhiteNoise.cpp +++ b/sc4pd/source/WhiteNoise.cpp @@ -35,14 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" -#include "support.hpp" - - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ WhiteNoise~ -------------------------------*/ diff --git a/sc4pd/source/absdif.cpp b/sc4pd/source/absdif.cpp index 34f41db..1af9473 100644 --- a/sc4pd/source/absdif.cpp +++ b/sc4pd/source/absdif.cpp @@ -35,12 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" inline float sc_absdif (float a, float b) diff --git a/sc4pd/source/amclip.cpp b/sc4pd/source/amclip.cpp index 9d4a936..4a3b194 100644 --- a/sc4pd/source/amclip.cpp +++ b/sc4pd/source/amclip.cpp @@ -35,12 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ amclip~ -----------------------------*/ diff --git a/sc4pd/source/difsqr.cpp b/sc4pd/source/difsqr.cpp index 823f266..807eefc 100644 --- a/sc4pd/source/difsqr.cpp +++ b/sc4pd/source/difsqr.cpp @@ -35,12 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" inline float sc_difsqr (float a, float b) diff --git a/sc4pd/source/excess.cpp b/sc4pd/source/excess.cpp index 00f8666..2aca853 100644 --- a/sc4pd/source/excess.cpp +++ b/sc4pd/source/excess.cpp @@ -35,13 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif - +#include "sc4pd.hpp" /* ------------------------ excess~ -----------------------------*/ diff --git a/sc4pd/source/hypot.cpp b/sc4pd/source/hypot.cpp index b096e48..1e2dd1a 100644 --- a/sc4pd/source/hypot.cpp +++ b/sc4pd/source/hypot.cpp @@ -35,12 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ hypot~ -----------------------------*/ diff --git a/sc4pd/source/main.cpp b/sc4pd/source/main.cpp index bc8af2a..cbec3c3 100644 --- a/sc4pd/source/main.cpp +++ b/sc4pd/source/main.cpp @@ -34,12 +34,7 @@ Coded while listening to: Phosphor */ -#include <flext.h> -#include "SC_PlugIn.h" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" #define SC4PD_VERSION "0.01" diff --git a/sc4pd/source/ring2.cpp b/sc4pd/source/ring2.cpp index 02e9a18..e5c48cf 100644 --- a/sc4pd/source/ring2.cpp +++ b/sc4pd/source/ring2.cpp @@ -35,13 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif - +#include "sc4pd.hpp" inline float sc_ring2 (float a, float b) { diff --git a/sc4pd/source/ring3.cpp b/sc4pd/source/ring3.cpp index 1887066..adb13c2 100644 --- a/sc4pd/source/ring3.cpp +++ b/sc4pd/source/ring3.cpp @@ -35,13 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif - +#include "sc4pd.hpp" inline float sc_ring3 (float a, float b) { diff --git a/sc4pd/source/ring4.cpp b/sc4pd/source/ring4.cpp index b343f67..5bd2af4 100644 --- a/sc4pd/source/ring4.cpp +++ b/sc4pd/source/ring4.cpp @@ -35,12 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" inline float sc_ring4 (float a, float b) diff --git a/sc4pd/source/scaleneg.cpp b/sc4pd/source/scaleneg.cpp index f6e69db..abd316f 100644 --- a/sc4pd/source/scaleneg.cpp +++ b/sc4pd/source/scaleneg.cpp @@ -35,12 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" /* ------------------------ scaleneg~ -----------------------------*/ diff --git a/sc4pd/source/sqrdif.cpp b/sc4pd/source/sqrdif.cpp index 617f987..2762fe5 100644 --- a/sc4pd/source/sqrdif.cpp +++ b/sc4pd/source/sqrdif.cpp @@ -35,12 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" inline float sc_sqrdif (float a, float b) diff --git a/sc4pd/source/sqrsum.cpp b/sc4pd/source/sqrsum.cpp index 8a39b68..265c909 100644 --- a/sc4pd/source/sqrsum.cpp +++ b/sc4pd/source/sqrsum.cpp @@ -35,12 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" inline float sc_sqrsum (float a, float b) diff --git a/sc4pd/source/sumsqr.cpp b/sc4pd/source/sumsqr.cpp index 5eb5726..4b2564d 100644 --- a/sc4pd/source/sumsqr.cpp +++ b/sc4pd/source/sumsqr.cpp @@ -35,12 +35,7 @@ */ -#include <flext.h> -#include "SC_PlugIn.h" - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif +#include "sc4pd.hpp" inline float sc_sumsqr (float a, float b) diff --git a/sc4pd/source/support.cpp b/sc4pd/source/support.cpp index 5211b71..fd87c86 100644 --- a/sc4pd/source/support.cpp +++ b/sc4pd/source/support.cpp @@ -34,14 +34,10 @@ */ -#include <flext.h> -#include <flsupport.h> -#include "SC_PlugIn.h" +#include "sc4pd.hpp" +#include <flsupport.h> -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406) -#error You need at least FLEXT version 0.4.6 -#endif bool sc_add (flext::AtomList a) { diff --git a/sc4pd/source/support.hpp b/sc4pd/source/support.hpp index bb5537a..34e260a 100644 --- a/sc4pd/source/support.hpp +++ b/sc4pd/source/support.hpp @@ -95,9 +95,3 @@ WARRANTIES, see the file, "license.txt," in this distribution. #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()) |