[PD-dev] Modified [partconv~] and issues with fftw3

Gloria Dal Santo gloria.dalsanto at outlook.it
Wed Apr 7 08:54:56 CEST 2021


Hi everyone!

I’m trying to create a sort of 3d audio reproduction system by convolving the dry sound with the BRIRs of a room.
The patch I’m working on will be connected to a head-tracker so that I can change BRIR depending on the position of the listener.

To achieve this I tried to use bsaylor’s  [partconv~] but unfortunately, when I set a new impulse response, I have a short dead time. To fix this I tried to cross fade the output of two [partconv~] but this messes up the binaural cues, it is not the right approach.

My idea is that of modifying the .c code of the external to get what I need. Usually, I work on Code::Blocks, MinGW compiler, Win10. I’ve already built some super simple externals, but this time I’m facing a problem that I’ve never encountered before: to perform the Fourier transform, partconv~.c uses the fftw3 library, and  I couldn’t find a way to add it to the Linker Options.

>From what I’ve understood online, fftw3 is a dynamic library, therefore there’s no .lib file. On Code::Blocks Settings -> Compiler -> Linker Settings -> Link libraries I cannot load a .dll dynamic library. I tried different solutions that I found online but none of those worked. I get “undefined reference to” errors when calling all the fftw3 functions.
Can any of you help me somehow? If you were able to write an external that referred to the fftw3 library, how was your setup?

Moreover, I saw that in the bsaylor’s  library folder there are also files of the type .dsp, .dsw, .o. Once I modify the .c code, should I update those as well?

I hope that I stated my issue clearly, if now please ask me for further details.
Thank you in advance for your time.

Gloria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20210407/e7eae3f9/attachment.htm>


More information about the Pd-dev mailing list