Old 08-17-2014, 12:02 PM   #1
JonSlaughter
Banned
 
Join Date: Oct 2013
Posts: 22
Default JS plugins are not multi-channel ready?

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)
JonSlaughter is offline   Reply With Quote
Old 08-17-2014, 06:00 PM   #2
mwe
Human being with feelings
 
mwe's Avatar
 
Join Date: Mar 2012
Location: Kentucky, USA
Posts: 254
Default

Quote:
...i've never met a plugin which dynamically adds sliders depending on track channel count. Or have you seen a vst plugin for example which does that ?
I think you could do it with @gfx in JS if you wanted to go to the trouble. I played around with this many moons ago.



You'd have to resolve issues like stereo vs. mono channels somehow.

Last edited by mwe; 08-17-2014 at 06:21 PM.
mwe is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:05 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.