Here's a two-step technique to turn stepped patterns into scratches, then slide them into perfect time, all using Cableguys TimeShaper. Try TimeShaper for free: http://www.cableguys.com/timeshaper.html
Music loops in this video from Computer Music Magazine