In your MemoryWriter, you could use this as the Trigger:
(1 - !Gate)
and in the SoundToGlobalController (STGC) that generates !Gate, you don't need a Constant input, you could simply use the expression that you had in the Constant's Value field directly in the STGC's Value field:
!Trigger stayOnFor: !OnDuration s