pierreguillot / Camomile

An audio plugin with Pure Data embedded that allows to load and to control patches
GNU General Public License v3.0
911 stars 65 forks source link

Normalization of rfft~/rifft~ different from Pd application #287

Open grrrr opened 3 years ago

grrrr commented 3 years ago

Hi, using spectral processing in a Camomile patch, it turns out that the signal resulting from an rfft~/rifft~ passthrough is higher by a factor n (= fft size) compared to the vanilla Pd application. I guess this is likely a libpd problem, but i lack the insight to prove this.

Attached, you will find the source to the camomile plugin spectral_pass.zip with a two-channel spectral pass-through

and a simplistic reaper project illustrating the issue: spectral_pass_test.RPP.zip

The platform is MacOS 10.14, building a VST3 plugin using Camomile version 1.0.7