fourier icon indicating copy to clipboard operation
fourier copied to clipboard

Initialization

Open echo66 opened this issue 9 years ago • 4 comments

Greetings, @drom !

One question: can I process different data heaps, using the same custom FFT object? Or is each object a "one shot" processor?

echo66 avatar Apr 27 '15 18:04 echo66

@echo66 yes, you can operate with other typed arrays. .transform() expects data starting from the beginning, and twiddle factors right after the data. I can change the function interface to pass dataStart and twiddleStart pointers. It will make heap more useful for storing other data. How about this?

drom avatar Apr 27 '15 19:04 drom

Greetings, @drom ! Thanks for the quick response. :+1:

There are several ways, IHMO, to make a "nice" interface for this:

a) The transform function should accept one or two arguments (one for forward and two for inverse transform). Optionally, the transform function should check the size of the provided arrays.

b) Create a function like "setData" which accepts one or two arguments (one for forward and two for inverse transform).

c) And, of course, your proposal. :)

I'm suggesting (a) and (b) due to my experience regarding the usage of other FFT libraries.

Oh, by the way, awesome work with this library! I'm using it with a Phase Vocoder with Identity Phase Locking.

echo66 avatar Apr 28 '15 13:04 echo66

Hi @echo66 do you use the library? Are you still interested in changes that you requested?

drom avatar Sep 19 '15 05:09 drom

I'm still using it with the phase vocoder. :)

echo66 avatar Sep 23 '15 13:09 echo66