Change routing order of FX modules

dwingus's icon

This has probably already been covered but I'm hoping for a simple solution. I have a series of video processing sub-patches (IE, saturate, brightness, contrast). For now they are hardwired in a certain order. How would I go about creating a fancy routing system that would allow for any order of processing? So maybe I want the signal flow to go 1) saturate 2) brightness 3)contrast . . . and then later I might want it to go 1)brightness 2) contrast 3)saturate . . . etc . . I was thinking maybe some sort of scripting system although I haven't done scripting in max. The other option I was thinking about is to create a generic fx module (container) and selecting which fx is loaded via .jxs files but that seems a little complicated due to the different number of params for each particular .jxs file. I've attached an example using basic color fx mods which share the same number of params but other .jxs files have more params. anyway . . any ideas are appreciated. thanks

827.fxmod-select.maxpat
Max Patch
lfxyz's icon

You could try controlling the routing of the FX using matrixctrl hooked up to a router object, but I only have experience using this with audio objects and the matrix~ object.
Make sure you include a bypass toggle on each FX module to remove one effect from the chain without having to do any repatching.

MIB's icon
Max Patch
Copy patch and select New From Clipboard in Max.

matrixctrl is a good way to go indeed. here is a quick mockup of what it could look like... keep in mind that if you mindlessly make connections you are going to get a stack overflow!!

seejayjames's icon

put the jit.qt.movie into a named matrix first, then you can update it in each of your FX subpatches without the stack overflow problem (if done right). It would definitely be good to have a gate on each FX bit which bypasses the processing, regardless of whether you're using the matrixctrl to route things (which works very well).

dwingus's icon

Hey thanks a lot!! Your responses are all really helpful. I'm on my way!

Cheers