Try [switch~] to turn off dsp in the subpatch(es) ala:

[ 0 (
|
[switch~]

You might need to add a small delay and ramp to avoid clicking.

On Jan 23, 2021, at 12:19 AM, pd-list-request@lists.iem.at wrote:

Message: 4
Date: Fri, 22 Jan 2021 15:11:22 -0800
From: Andrew Lyons <tstexture@gmail.com>
To: Pd-List <pd-list@lists.iem.at>
Subject: [PD] Patch change via midi
Message-ID:
<CAF3KZase-CZqiCUBykKHLNUskAO2M+a0q=H74UDM3pEH7SXh1A@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,

I have a headless raspberry pi that boots into a PD patch I created. (I
control it with a midi wind controller and an FCB 1010 midi foot
controller.) I have observed that bypassing certain sections of the patch
with MIDI signals generated by the foot pedal board does not actually stop
those sections of the patch from processing, and using CPU bandwidth.

I was wondering if it was possible to cease processing sections of a patch
somehow? Maybe by stopping a sub-process or something? Alternatively, I was
wondering if it was possible to load a different patch upon input of a
certain midi program change?

Thanks!

--------
Dan Wilcox
@danomatika
danomatika.com
robotcowboy.com