Learning to glitch