A little fork. I left all the old code for historical reasons
It is a simple SynthDef I made after having a look at Hasher UGen with a pattern to play it. It creates nice and varied glitch sounds.
Revised: Made some improvements from previous submission.
I hadn't really come across a simple self-contained example to use with patterns.
Same algo, but instead of picking the next note in the scale, it take the next event in an event pattern, much more possibilities, I have fun for hour