Hello there!
I am at the very first attempt in patch development, and i am stuck in a problem that concern the Fast Fourier Transform.
As i am not really confident with C++ and my math background is not so detailed (i know a bit of theory but the implementation is far from my possibilities), maybe that is one of the reasons why i am not getting the patch working, but i am reasonably sure that this is the right way to make this patch (if it isn’t i beg you to explain me a better way T_T )
Here is my problem: i want to make a “Whammy”-like patch, and to manipulate the pitch i’m trying to use the FFT using the C++ API. At the current state the patch is only applying the direct fft to the buffer when the first parameter (A) is greater than 0.5, and nothing else, and that seems to work. I’m actually using for debugging to mute the sound putting the first parameter (A) to zero. But when i try to do the inverse FFT the “debugging” trick does not work anymore and i suppose somehow goes in error when the inverse is applied (if you try to comment the line with the inverse FFT it works perfectly).
Regardless of whether or not I modify the buffer before applying the inverse FFT seems not to work at all.
Here is my patch:
https://hoxtonowl.com/patch-library/patch/WhammyPatch/
Can someone help me to figure out where I’m wrong?
Thank you!