正式なコメント

The reason you're hearing a click is when the algorithm engages/disengages, the edge of the audio doesn't perfectly align with the audio before it, so it's interpreted as a click. My advice would be to either not switch it on/off, or to hit it on a beat so it's less audible.