Hello
I have some problems with the
Code:
isInChannelConnected()
function in combination with sidechains.
I need to know if the track in the DAW is mono or stereo.
I need these IO settings:
Code:
#define PLUG_CHANNEL_IO "2-1 4-2" // For mono in + sc mono in -> mono out and stereo in + sc stereo in -> Stereo out
#define PLUG_SC_CHANS 2
My problem is, with Cubase Mono tracks "isInChannelConnected()" dosent´t work well. If I call "isInChannelConnected()" for every channel (4 input channels for stereo), everything is "true" on a mono track!
With "#define PLUG_SC_CHANS 0" it works as espected. But I need the sidechains
I tried a lot of different combinations and this "hack"
http://forum.cockos.com/showthread.p...annelConnected
But nothing helps.
For my plugin its important to have a 100% mono signalpath, because the i.e. left signal of a Stereo Sidechain has -3dB of the mono signal, because of the pan law.
My quick solution is to compile 2 plugins. 1 for Mono, 1 for Stereo but it´s nicer to have only one Plugin