here’s a basic compressor patch i made for class. you really want separate attack and decay controls (slow the attack to let initial transients through uncompressed, slow the decay to minimize pumping). also, varying the [env~] window can change the responsiveness.

a high threshold, high ratio, and pretty fast attack/decay is needed for limiting.