im processing samples in lots of 2048.
void ffteq_process(int samples, int* in, int* out, float* data, int*& memory)
{
int fftsize=11;
int size=2048;
int j;
for(j=0;j<samples;j+=size)
{
int k;
for(k=0;k<size;k++)
{
GRe[k]=in[j+k];
GIm[k]=0;
}
FFT(1,fftsize,GRe,GIm);
for(k=0;k<size/2;k++)
{
int b=(31-((powf(1.0/(8192.0*256.0),(float)k/(float)(size/2)))*31))+1; //theres 32 controllers
//to control frequency so i access them here
double amp=hypot(GRe[k],GIm[k]);
double phase=atan2(GRe[k],GIm[k]);
float vol=data[b]*2; //this is just accessing the graph that attenuates the frequencies
if(vol>=1) {vol*=16;vol-=15;};
amp*=vol;
GRe[k]=sinf(phase)*amp;
GIm[k]=cosf(phase)*amp;
amp=hypot(GRe[(size-1)-k],GIm[(size-1)-k]);
phase=atan2(GRe[(size-1)-k],GIm[(size-1)-k]);
amp*=vol;
GRe[(size-1)-k]=sinf(phase)*amp;
GIm[(size-1)-k]=cosf(phase)*amp;
}
FFT(0,fftsize,GRe,GIm);
for(k=0;k<size;k++)
{
out[j+k]=GRe[k];
}
}
}













