The way you describe it i think it is a well known event when sound has a sudden attack. If you look at this image https://i.imgur.com/shjUWQ1.png You can see the theory behind attack-clicks. Where the spectrum is close to the 0-dB line these will be no clicks, everywhere else there will be a click...
-- EDIT: nvm --
https://www.newgrounds.com/projects/aud ... 58/preview
idk what to name it