I want to have something similar to this device and believe should be fairly simple.

This is how I would explain this (simplified) device: Audio is only passed through if it's above the given threshold. Amplitude is dependent on an AHD envelope.
I know how to do the envelope part but failed to find a way to get a trigger for the threshold.

Let us know how it works out!
I will refer to them as noise gates from now on. It's also exactly what I am using them for.