Disable everything in a subpatch

Ed Beesley's icon

Hi all,

I'm writing a large and complex piece in Max which is pretty CPU intensive. The piece itself is broken up into separate sections, and I'd like to be able to en/disable audio/video/midi/everything processing as the piece moves from section to section.

Would the best way to do this be to wrap up the different sections in a poly~ object and just switch them on/off as necessary? For example if I just encapsulated entire sections and load them up in a poly, can I then switch off everything inside that poly or does it not work that way?

Thanks!

Robin Parmar's icon

[poly~] is the only method I know of, but someone with more experience in large applications will hopefully chime in. So consider this a bump. :-)

Rodrigo's icon

I generally use poly~ for that, but for a more complex/robust approach you can look at the AHarker externals and dynamicdsp~/dynamicserial~. You can dynamically load and mute patches in more detail (primarily *not* loading a subpatch at all until needed).

In general, I'll just structure things in a way where each 'module' can be turned on/off, and then just build the dsp muting into that bypassing/enabling thing.

This is an abstraction I use to do the actual 'bypassing' along with dsp muting. It crossfades the dry/wet audio, and then mutes the dsp once that process is done. And when enabling it, it enables the dsp, then crossfades back.

Max Patch
Copy patch and select New From Clipboard in Max.

Ed Beesley's icon

Thanks guys for the advice, I think those externals are exactly what I'm looking for, but alas they're Mac only. I'll get in touch with him and see how far away the Windows ports are.
Cheers!

Rodrigo's icon

He does have Windows builds of them too.

Ed Beesley's icon

Oh! Do you have a link for those by any chance? I can only find the Mac distribution on his site, and I can't see any Windows stuff on the GitHub

Rodrigo's icon

I have them somewhere, but probably best to message him for them rather than me uploading potentially out of date externals to the forum.