Keep getting audio dropouts in the buffer on this loop/glitch device I made

ryan7585's icon

I made this plugin and it seems to work great other than that after playing with it for a while, sometimes i start getting audio dropouts in the buffer. What could cause that? Also mouse control seems spotty and I'm not sure why.

I really hope I can fix this cause this plugin is becoming a huge asset

5005.GrooveSlice.amxd
amxd