aboutsummaryrefslogtreecommitdiff
path: root/tbext/source/fftgrrev.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tbext/source/fftgrrev.cpp')
-rw-r--r--tbext/source/fftgrrev.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/tbext/source/fftgrrev.cpp b/tbext/source/fftgrrev.cpp
index e26135c..fd844f0 100644
--- a/tbext/source/fftgrrev.cpp
+++ b/tbext/source/fftgrrev.cpp
@@ -68,14 +68,11 @@ private:
t_int bs; //blocksize
t_int bs1; //bs+1
- t_int counter;
t_sample * data; //array with data
t_sample * d1; //1. element in array with data
t_sample * dend; //1 element after the last element
- t_sample * ins;
- t_sample * outs;
bool reverse;
@@ -85,7 +82,7 @@ private:
FLEXT_LIB_DSP_1("fftgrrev~",fftgrrev,int)
fftgrrev::fftgrrev(int arg):
- grains(1),offset(0),counter(1)
+ grains(1),offset(0)
{
bs=arg/2;
grainsize=bs;
@@ -106,9 +103,8 @@ fftgrrev::fftgrrev(int arg):
void fftgrrev::m_signal(int n, t_float * const *in, t_float *const *out)
{
- ins = in[0];
- outs = out[0];
-
+ t_sample * ins = in[0];
+ t_sample * outs = out[0];
if (offset>0)
{
@@ -126,7 +122,7 @@ void fftgrrev::m_signal(int n, t_float * const *in, t_float *const *out)
//grains
- counter=1;
+ int counter=1;
while (counter!=grains)
{
@@ -144,7 +140,6 @@ void fftgrrev::set_offset(t_int o)
if (o-bs<0 && o+bs>0)
{
offset=-o;
- post("offset %i",o);
}
else
post("Offset out of range!");