I'm working on a circuit involving an incoming audio signal via a 3.5mm headphone jack. The circuit cannot handle voltage spikes greater than 4 VPK. Is there any sort of IC, or circuit that allows voltage under 4 VPK to pass through, but filters any voltage over 4 VPK to exactly 4 VPK? The only way I have come up with is to use a micro-controller that samples the incoming audio signal every 50 microseconds and perform the calculations to limit any voltage over 4 VPK. It'd be much easier and cheaper if I could use some sort of IC or circuit to filter the voltage instead of using a micro-controller. To be clear, I am not trying to filter based off of frequency, I essentially want any incoming audio signal greater than 4 VPK to essentially "platue" at exactly 4 VPK. So if the incoming signal has 3 VPK, it passes into the circuit as 3 VPK. If the incoming signal has 5 VPK, it passes into the circuit as 4 VPK. Also, sorry if this is a simple question. I'm about halfway through my EE degree, but I can't seem to figure out a way to do this besides using a micro-controller.