fr810
September 28, 2017, 7:51am
2
Hi @IvanC , you are doing everything exactly right. I like your explanation.
IvanC:
So, if I choose “none” in the sidechain combobox that appears in Logic Pro X when the plug-in is loaded, I expect either the sidechain input to have 0 channels, or to have only null samples if it exists. However, in that specific case the function getBusBuffer(buffer, true, 1).getNumChannels() returns 2, and its content is the same than the main input buffer, which is absolutely not what I want.
Unfortunately, this is how Logic does sidechain processing and nothing that JUCE can do anything about: if you don’t select a sidechain, then Logic will use the track on which you have loaded the plug-in as its’ sidechain.
See here for more information:
This is expected behaviour: you can use other third-party AUs and many behave the same way. It’s technically possible to detect “None” being selected as a sidechain by checking if Logic passes identical pointers for both buffers. Unfortunately, this is identical to the behaviour of Logic, when the user selects the same track for both sidechain and the main bus I tried various third-party plug-ins and none of them was able to either detect that None is selected - or function properly if the user…