PDA

View Full Version : IPlug Sidechain - bus/channelIO question


red
10-24-2009, 02:00 AM
Hi there,

Has anyone already used sidechains in their AU/VST plugs with IPlug? I can't figure out how to configure channel_IO to use stereo input/output bus and stereo sidechain to work with AU and VST.
Tried #define PLUG_CHANNEL_IO "4-2" but AUval reported:

Input Scope Bus Configuration:
Default Bus Count:2
Format Bus 0: AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved
Format Bus 1: AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved

Output Scope Bus Configuration:
Default Bus Count:1
Default Format: AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved

ERROR: Default Format of unit does not match reported Channel handling capabilities


What am I missing? How can I set the required default format for channel handling?


Thanks in advance and best regards
red

red
11-03-2009, 02:11 AM
probably I have written too much.
I am looking for a hint on how sidechains are implemented in wdl, for a small compressor plugin.

Thanks again and best regards
red

schwa
11-03-2009, 07:38 AM
Hmm, that should work, in theory. In practice most hosts wouldn't load that plugin because as defined it would *require* 4 input channels. You could try:

#define PLUG_CHANNEL_IO "2-2 4-2"

RRokkenAudio
02-11-2010, 02:38 AM
So, setting up 2-2 4-2 worked but what are the array numbers?

This is distorting audio badly:

double* in1 = inputs[0];
double* in2 = inputs[1];
double* sc1 = inputs[2];
double* sc2 = inputs[3];
double* out1 = outputs[0];
double* out2 = outputs[1];


blah test is *out1 = *sc1; *out2 = *sc2;


EDIT: I'll leave this up here if someone else has a problem: Forgot to change this line > updating the ++sc1,++sc2.

for (int s = 0; s < nFrames; ++s, ++sc1,++sc2,++in1, ++in2, ++out1, ++out2) {


~Rob.