It seems all the plugins I've looked at are not multi-channel ready in the sense that they do not automatically adjust to deal with the number of channels on the track.
e.g., take the JS limiter,
// This effect Copyright (C) 2004 and later Cockos Incorporated
// License: GPL -
http://www.gnu.org/licenses/gpl.html
desc: hard limiter
slider1:0<-120,60,1>max vol (dB)
@slider
mv=2 ^ (slider1/6);
@sample
spl0=min(max(spl0,-mv),mv);
spl1=min(max(spl1,-mv),mv);
It is stereo only? Even if you put in 10 channels it will affect only the first two?
Also, it does not scale. Stick in 4 channels and still only one slider. It would be nice to have n sliders for n channels(where n depends on the number of channels set by the track, not hard coded).
Is there any way to accomplish this? (I am obviously not talking about simply adding 4 fixed sliders that work with 4 channels but not 6. The code could, in theory, look like this
// This effect Copyright (C) 2004 and later Cockos Incorporated
// License: GPL -
http://www.gnu.org/licenses/gpl.html
desc: hard limiter
N: numChannels
for k = 1:N
slider(k):0<-120,60,1>max vol (dB)
@slider
for k = 1:N
mv(k)=2 ^ (slider1/6);
@sample
for k = 1:N
spl(k)=min(max(spl(k),-mv),mv);
(the point is not the syntax, but the loop control)