William "Chops" Westfield wrote: > > On Aug 2, 2005, at 2:30 AM, Marcel Birthelmer wrote: > > > > > http://marcel.carrietech.com/crunch.txt > > > > for(offset=0; offset < chunksize; offset += step) //slide window to > > the right by "step" > > { > > for(i=0; i > { > > idata[i] = buffer[i + offset]; //fill input array with offset'th > > frame > > } > I don't know anything about fftw, but... > > The second for loop looks a bit off. Shouldn't the limit there > be step rather than chunksize again? > > BillW Bill, Thanks for taking the time to read the code and respond. The idea is that there should be overlap between the various datasets, so that on the i'th cycle, frames i to n+i are examined (where n = fps). So with that in mind, I think it should be fine. But at this point, I'm sure I'm missing something obvious in the code so who knows. - Marcel -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist