CLAP: Bug when using Reaper FX oversampling

Hi,

I seem to have come across a strange bug in iPlug2-clap.

Situation:

  • Windows 10, 64-bit, everything up to date;
  • Reaper latest dev build: v6.67+dev0908;
  • iPlug2-clap, CLAP_SDK, CLAP_HELPERS, all updated to the very latest versions;
  • Reaper set to 48k (but this is irrelevant, as the same bug occurs on other sampling rates as well).

I duplicated IPlugEffect.
With no FX oversampling enabled in Reaper, everything works fine.
With any of Reaper’s FX oversampling settings enabled, the CLAP version of the plugin goes crazy, and starts comb filtering out of the blue, AND the effect is even different between left and right channels.

This happens ONLY (and ALWAYS) on the CLAP build of the plugin, NEVER on the VST3 build of the same plugin, whenever Reaper’s oversampling is enabled.

For comparison, I tried the exact same test with Surge’s CLAP effects plugin, and the bug does NOT occur there, so I must conclude that the fault is not within Reaper, but within either the CLAP framework, or iPlug2-clap.

Any help appreciated! :slightly_smiling_face:

SmolPlugg-001

Frequencies of the comb filter notches seem to be exactly odd multiples of sample rate / buffer size, (in the above gif, that was 48000 / 256 = 187.5 Hz and odd multiples), so I’m sure it’s got something to do with a buffer not being cleared that should, or similar.

Thanks - for bug reports it’s best to use Github Issues (which I think has now been done, as I’ve just checked)…

1 Like

Hi Alex,

Yeah, I was very tired yesterday and forgot, sorry about that.
Indeed, now corrected after some good strong coffee :wink:

Please let me know if you need any more info :slight_smile:

Many thanks for your fantastic hard work with iPlug2!

No worries. I replied on the issue - if you want to investigate first that’s fine, as I’m working through a to do list on clap. Hopefully you’ve also seen the breaking parameter handling changes that were necessary to get correct parameter shaping.

1 Like

Issue has been solved