Noise Gate with a sidechain?

An envelope-follower may suffice …