aboutsummaryrefslogtreecommitdiff
path: root/tbext/source/fftgrsort.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tbext/source/fftgrsort.cpp')
-rw-r--r--tbext/source/fftgrsort.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/tbext/source/fftgrsort.cpp b/tbext/source/fftgrsort.cpp
index f24ed0f..1764c02 100644
--- a/tbext/source/fftgrsort.cpp
+++ b/tbext/source/fftgrsort.cpp
@@ -1,4 +1,4 @@
-/* Copyright (c) 2003 Tim Blechmann. */
+/* Copyright (c) 2003-2004 Tim Blechmann. */
/* For information on usage and redistribution, and for a DISCLAIMER OF ALL */
/* WARRANTIES, see the file, "COPYING" in this distribution. */
/* */
@@ -70,14 +70,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;
@@ -87,7 +84,7 @@ private:
FLEXT_LIB_DSP_1("fftgrsort~",fftgrsort,int)
fftgrsort::fftgrsort(int arg):
- grains(1),offset(0),counter(1),reverse(0)
+ grains(1),offset(0),reverse(0)
{
bs=arg/2;
grainsize=bs;
@@ -109,8 +106,8 @@ fftgrsort::fftgrsort(int arg):
void fftgrsort::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)
@@ -129,7 +126,7 @@ void fftgrsort::m_signal(int n, t_float * const *in, t_float *const *out)
//grains
- counter=1;
+ int counter=1;
while (counter!=grains)
{
@@ -152,7 +149,7 @@ void fftgrsort::set_offset(t_int o)
if (o-bs<0 && o+bs>0)
{
offset=-o;
- post("offset %i",o);
+ // post("offset %i",o);
}
else
post("offset out of range!");