real time convolution?
Hey - so i'm working on a project in unity where i'm taking a live audio input and hoping to apply convolution to it using spectrum data from a series of samples. Is it possible to achieve this given supported PD objects, or should I rely on data gathered in unity itself? (since i noticed fft~ and related objects aren't implemented yet, is there a known workaround?)
Hi @Latimark yes this is possible, though the workaround is slightly funky.
There's a branch of heavylib called conv https://github.com/enzienaudio/heavylib/tree/conv that contains a patch called hv.conv. Essentially this is a wrapper around heavy's convolution object but it only exists in heavy (haven't figured a good way to surface it in Pd :/).
Check the associated help file but basically you set a table that the input should convolve with. You can access the table in Unity via the FillTableWithFloatBuffer method.
Hope that helps!