AGC for compression using LDR and LED

Just learning about compression for guitar. First used a Jfet but it has limited range and can create significant distortion (even for guitar) when signal over 400mV. I have had really good success with LDR photo resistor and LED as an alternative to Jfets.

Also -- one of the problems with compression -- when there is no signal gain is max and that causes initial response from incoming signal to pop before loop can respond to attenuate. I found that fast attack circuit works well but need to sense both positive and negative crests of signal. Sensing both phases also improves loop response.

Anyone have experience with compression and AGC -- open for ideas.
 
1 to 5 amplitude step change 1kHz signal.
Screenshot 2024-04-03 185320.png