works with both qt and cocoa. i get a steady 60fps on my machine. try lowering 'l= 1024' at the top if it's too heavy on your cpu.
i've also written a pattern class Pklee http://fredrikolofsson.com/f0blog/?q=node/467
i wrote this for a sleeping bag concert in stockholm nov 2010. never set it off in the end as planned.