My network contains a lot more than just some gains so recreating it all via scripting is a pain and means I don't get to work with the nice GUI. Is there a simple build network from JSON type thing? Edit: dsp.createFromJSON might be it..
Another option I thought of is I can park all the chains in the multi as unused nodes, then in the script use this to add them for just the number of channels:
const dsp = Engine.createDspNetwork("SimpleGain"); const numChannels = dsp.getNumChannels(); const multi = dsp.get("multi"); const numPairs = numChannels / 2; for (i = 0; i < numPairs; i++) dsp.get("chain" + i).setParent(multi, i);This works for my multi channel simple gain because each channel has its own chain, but I don't think it would be a good general solution for all networks.