aboutsummaryrefslogtreecommitdiff
path: root/tbext/source
diff options
context:
space:
mode:
Diffstat (limited to 'tbext/source')
-rw-r--r--tbext/source/main.cpp5
-rw-r--r--tbext/source/tbroute.cpp16
-rw-r--r--tbext/source/tbsroute~.cpp12
-rw-r--r--tbext/source/tbstrg.cpp2
4 files changed, 19 insertions, 16 deletions
diff --git a/tbext/source/main.cpp b/tbext/source/main.cpp
index c4317fd..9cfbd24 100644
--- a/tbext/source/main.cpp
+++ b/tbext/source/main.cpp
@@ -54,10 +54,13 @@ void ttbext_setup()
post("");
FLEXT_SETUP(tbroute);
- FLEXT_SETUP(tbstrg);
+ //FLEXT_SETUP(tbstrg);
FLEXT_DSP_SETUP(tbsroute);
FLEXT_DSP_SETUP(tbsig);
FLEXT_DSP_SETUP(tbpow);
+ // FLEXT_DSP_SETUP(tbg7xx);
+ FLEXT_DSP_SETUP(tbfft1);
+
}
diff --git a/tbext/source/tbroute.cpp b/tbext/source/tbroute.cpp
index 83d85a0..3218886 100644
--- a/tbext/source/tbroute.cpp
+++ b/tbext/source/tbroute.cpp
@@ -40,7 +40,6 @@
/* */
/* */
-
#include <flext.h>
#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 400)
@@ -52,31 +51,32 @@ class tbroute: public flext_base
FLEXT_HEADER(tbroute,flext_base);
public: // constructor
- tbroute(t_int chan);
+ tbroute(int chan);
protected:
void route(t_float f);
void routebang();
- void set_route(t_int i);
+ void set_route(int i);
private:
FLEXT_CALLBACK_1(route,t_float);
FLEXT_CALLBACK(routebang);
- FLEXT_CALLBACK_1(set_route,t_int);
- t_int dest;
+ FLEXT_CALLBACK_1(set_route,int);
+
+ int dest;
};
FLEXT_LIB_1("tbroute",tbroute,int);
-tbroute::tbroute(t_int chan)
+tbroute::tbroute(int chan)
{
AddInAnything();
AddInInt();
- for (t_int i=0; i!=chan;++i)
+ for (int i=0; i!=chan;++i)
{
AddOutAnything();
}
@@ -98,7 +98,7 @@ void tbroute::routebang()
ToOutBang(dest);
}
-void tbroute::set_route(t_int i)
+void tbroute::set_route(int i)
{
--i;
if ((i>-1) && (i<CntOut()))
diff --git a/tbext/source/tbsroute~.cpp b/tbext/source/tbsroute~.cpp
index 3d2264d..d18d264 100644
--- a/tbext/source/tbsroute~.cpp
+++ b/tbext/source/tbsroute~.cpp
@@ -51,21 +51,22 @@ class tbsroute: public flext_dsp
FLEXT_HEADER(tbsroute,flext_dsp)
public: // constructor
- tbsroute(int chan);
+ tbsroute(t_int chan);
protected:
virtual void m_signal (int n, float *const *in, float *const *out);
void set_route(int i);
private:
- FLEXT_CALLBACK_1(set_route,t_int)
+ FLEXT_CALLBACK_1(set_route,int)
t_int dest;
};
-FLEXT_LIB_DSP_1("tbroute~",tbsroute,int)
+FLEXT_LIB_DSP_1("tbroute~",tbsroute,int);
- tbsroute::tbsroute(t_int chan):dest(0)
+tbsroute::tbsroute (t_int chan):
+ dest(0)
{
AddInSignal();
AddInInt();
@@ -92,8 +93,7 @@ void tbsroute::m_signal(int n, float *const *in, float *const *out)
}
-
-void tbsroute::set_route(t_int i)
+void tbsroute::set_route(int i)
{
--i;
if ((i>-1) && (i<CntOutSig()))
diff --git a/tbext/source/tbstrg.cpp b/tbext/source/tbstrg.cpp
index c71c7da..a999e2f 100644
--- a/tbext/source/tbstrg.cpp
+++ b/tbext/source/tbstrg.cpp
@@ -59,7 +59,7 @@ protected:
private:
- FLEXT_CALLBACK_1(set_route,t_int);
+ FLEXT_CALLBACK(set_route,t_int);
t_int dest;
};