The two parts that need to be modified are the inputs and outputs. I think that if I were to go about modifying it (here I am looking at the Receiver plug), I would probably comment out
slider1:0<0,2,1{Stereo,Left,Right}>Input
and instead go with something like
slider20:channelin0=0<0,7,1>Input Channel 1
slider21:channelin1=1<0,7,1>Input Channel 2
So basically replacing the "input" slider with something that doesn't just assume L/R/stereo. If you had a more concrete idea which combinations you wanted you could simply add new options to this slider, though.
without hacking the code up too much, I suppose you could do something like this
Code:
l = (channelin0 == 0 ? spl0 :
channelin0 == 1 ? spl1 :
channelin0 == 2 ? spl2 :
channelin0 == 3 ? spl3 :
//etc
repeating appropriately for the number of channels and duplicating that for r as well.
You would have to do something similar for the output as well so
slider22:channelout0=2<0,7,1>Output Channel 1
slider23:channelout1=3<0,1,1>Output Channel 2
and then the output code block might look like
Code:
(channelout0 == 0 ? spl0 = l :
channelout0 == 1 ? spl1 = l :
channelout0 == 2 ? spl2 = l :
channelout0 == 3 ? spl3 = l :
//etc
I don't think it's particularly elegant, but it would work. Obviously if you were going for more or less channels it would be easy to modify.
This is only looking at the Receiver plugin, but modifying the Transmitter wouldn't be that much more difficult. The Transmitter also has a director, so that would need to be modified as well in a similar fashion, so slider11 would need to be commented out and replaced with slider22 and slider23, if we follow the same scheme as above.
Hopefully that makes some kind of sense.