MIDI persist causing issues with hardware synth processing

This is what I was referencing to: Issue with audio from global rackspace
Here, user @JdP also faced this issue.

There are two solutions. What you need is a widget in each rackspace that mutes, for example, a gain block in the audio path to the rackspace.

  1. Script in each rackspace (more work) that mutes when you leave the rackspace:
    Issue with audio from global rackspace - #15 by Florian
  2. Only one script in the global rackspace (less work):
    In the global rackspace you need to add a short script that sets this widget to “mute” each time you leave a rackspace.
    The important part is that the muting widget is always given the same handle, like MUTE.
var ew : ExternalWidget

On Rackspace(oldRackspaceIndex : integer, newRackspaceIndex : integer)                 // When we switch to a new rackspace we check
    If BindExternalWidget(ew, "MUTE", GetRackspaceNameAtIndex(oldRackspaceIndex)) then // if the old rackspace included a widget with the handle "MUTE" and we
        SetExternalWidgetValue(ew,1)                                                   // set it to mute
    End
End

Here is a demo gig file:
AudioMute.gig (34.7 KB)