How to make beat sound like edIT?

I am curious of how edIT makes the super fast beat repetitions as shown in the link below. I am a noob so its probably extremely simple haha.

- YouTube

Thanks in advance.

I really don’t know how the “Glitch-Hop” style is made, but I think that it might have something with mapping start/end times to macros and adjusting them live to create the glitching at random times.